From: Alan Modra Date: Thu, 28 Oct 2010 06:00:13 +0000 (+0000) Subject: * readelf.c (is_32bit_abs_reloc): Support i960 and microblaze. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=137b6b5f5ebf447f40cd9c21445590e4e0d1e874;p=binutils-gdb.git * readelf.c (is_32bit_abs_reloc): Support i960 and microblaze. (is_32bit_pcrel_reloc): Support microblaze. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d97fb45e136..b094ac640af 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2010-10-28 Alan Modra + + * readelf.c (is_32bit_abs_reloc): Support i960 and microblaze. + (is_32bit_pcrel_reloc): Support microblaze. + 2010-10-26 Nick Clifton * po/ja.po: Updated Japanese transaltion. diff --git a/binutils/readelf.c b/binutils/readelf.c index e516966abd6..76337d5585c 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -9286,8 +9286,10 @@ is_32bit_abs_reloc (unsigned int reloc_type) return reloc_type == 1; /* R_68K_32. */ case EM_860: return reloc_type == 1; /* R_860_32. */ + case EM_960: + return reloc_type == 2; /* R_960_32. */ case EM_ALPHA: - return reloc_type == 1; /* XXX Is this right ? */ + return reloc_type == 1; /* R_ALPHA_REFLONG. */ case EM_ARC: return reloc_type == 1; /* R_ARC_32. */ case EM_ARM: @@ -9339,6 +9341,8 @@ is_32bit_abs_reloc (unsigned int reloc_type) return reloc_type == 1; /* R_MCORE_ADDR32. */ case EM_CYGNUS_MEP: return reloc_type == 4; /* R_MEP_32. */ + case EM_MICROBLAZE: + return reloc_type == 1; /* R_MICROBLAZE_32. */ case EM_MIPS: return reloc_type == 2; /* R_MIPS_32. */ case EM_MMIX: @@ -9432,6 +9436,8 @@ is_32bit_pcrel_reloc (unsigned int reloc_type) return reloc_type == 10; /* R_ALPHA_SREL32. */ case EM_ARM: return reloc_type == 3; /* R_ARM_REL32 */ + case EM_MICROBLAZE: + return reloc_type == 2; /* R_MICROBLAZE_32_PCREL. */ case EM_PARISC: return reloc_type == 9; /* R_PARISC_PCREL32. */ case EM_PPC: