This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Xtensa] handle new pcrel reloc in readelf


I forgot to include this with my patch to add the new Xtensa pc-relative relocation. Committed.

2007-12-07 Bob Wilson <bob.wilson@acm.org>

* readelf.c (is_32bit_pcrel_reloc): Add Xtensa.
Index: readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.393
diff -u -p -r1.393 readelf.c
--- readelf.c	3 Dec 2007 23:19:25 -0000	1.393
+++ readelf.c	8 Dec 2007 01:02:40 -0000
@@ -8102,6 +8102,9 @@ is_32bit_pcrel_reloc (unsigned int reloc
       return reloc_type == 13; /* R_SPU_REL32.  */
     case EM_X86_64:
       return reloc_type == 2;  /* R_X86_64_PC32.  */
+    case EM_XTENSA_OLD:
+    case EM_XTENSA:
+      return reloc_type == 14; /* R_XTENSA_32_PCREL.  */
     default:
       /* Do not abort or issue an error message here.  Not all targets use
 	 pc-relative 32-bit relocs in their DWARF debug information and we

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]