public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* support SPU debug relocs in readelf
@ 2007-12-03 23:19 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2007-12-03 23:19 UTC (permalink / raw)
  To: binutils

	* readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU.

Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.392
diff -u -p -r1.392 readelf.c
--- binutils/readelf.c	29 Nov 2007 12:23:43 -0000	1.392
+++ binutils/readelf.c	3 Dec 2007 05:44:55 -0000
@@ -8044,6 +8044,8 @@ is_32bit_abs_reloc (unsigned int reloc_t
     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
     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:

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-03 23:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-03 23:19 support SPU debug relocs in readelf Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).