diff options
author | Alan Modra <amodra@gmail.com> | 2007-12-03 23:19:25 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-12-03 23:19:25 +0000 |
commit | a7dd7d0572d27173a58fbbbf7b7c0b719dcfb2a6 (patch) | |
tree | 370cd08656321a8add1dbd42a33294d8e2b1e79a /binutils/readelf.c | |
parent | d13d40158906cfac1ef1a1df91096590ed35c787 (diff) | |
download | gdb-a7dd7d0572d27173a58fbbbf7b7c0b719dcfb2a6.zip gdb-a7dd7d0572d27173a58fbbbf7b7c0b719dcfb2a6.tar.gz gdb-a7dd7d0572d27173a58fbbbf7b7c0b719dcfb2a6.tar.bz2 |
* readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index e827e6c..d3c6605 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -8044,6 +8044,8 @@ is_32bit_abs_reloc (unsigned int reloc_type) case EM_SPARC: return reloc_type == 3 /* R_SPARC_32. */ || reloc_type == 23; /* R_SPARC_UA32. */ + case EM_SPU: + return reloc_type == 6; /* R_SPU_ADDR32 */ case EM_CYGNUS_V850: case EM_V850: return reloc_type == 6; /* R_V850_ABS32. */ @@ -8096,6 +8098,8 @@ is_32bit_pcrel_reloc (unsigned int reloc_type) case EM_SPARCV9: case EM_SPARC: return reloc_type == 6; /* R_SPARC_DISP32. */ + case EM_SPU: + return reloc_type == 13; /* R_SPU_REL32. */ case EM_X86_64: return reloc_type == 2; /* R_X86_64_PC32. */ default: |