diff options
author | Alan Modra <amodra@gmail.com> | 2010-10-28 06:00:13 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-10-28 06:00:13 +0000 |
commit | 137b6b5f5ebf447f40cd9c21445590e4e0d1e874 (patch) | |
tree | f6291c76d40640ea3b4c0637c4fa908cbb1c2b9c /binutils | |
parent | c2ce945a08383aef450e12899ebee6d1745242a7 (diff) | |
download | gdb-137b6b5f5ebf447f40cd9c21445590e4e0d1e874.zip gdb-137b6b5f5ebf447f40cd9c21445590e4e0d1e874.tar.gz gdb-137b6b5f5ebf447f40cd9c21445590e4e0d1e874.tar.bz2 |
* readelf.c (is_32bit_abs_reloc): Support i960 and microblaze.
(is_32bit_pcrel_reloc): Support microblaze.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d97fb45..b094ac6 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2010-10-28 Alan Modra <amodra@gmail.com> + + * readelf.c (is_32bit_abs_reloc): Support i960 and microblaze. + (is_32bit_pcrel_reloc): Support microblaze. + 2010-10-26 Nick Clifton <nickc@redhat.com> * po/ja.po: Updated Japanese transaltion. diff --git a/binutils/readelf.c b/binutils/readelf.c index e516966..76337d5 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: |