From: Alan Modra Date: Mon, 3 Dec 2007 23:19:25 +0000 (+0000) Subject: * readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7dd7d0572d27173a58fbbbf7b7c0b719dcfb2a6;p=binutils-gdb.git * readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index cce388075e7..7bd4fcbc94f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2007-12-04 Alan Modra + + * readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU. + 2007-11-29 Mark Shinwell * readelf.c (get_machine_flags): Handle Loongson-2E and -2F diff --git a/binutils/readelf.c b/binutils/readelf.c index e827e6c85a5..d3c66052472 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: