]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* readelf.c (is_32bit_pcrel_reloc): Add Xtensa.
authorBob Wilson <bob.wilson@acm.org>
Sat, 8 Dec 2007 01:04:59 +0000 (01:04 +0000)
committerBob Wilson <bob.wilson@acm.org>
Sat, 8 Dec 2007 01:04:59 +0000 (01:04 +0000)
binutils/ChangeLog
binutils/readelf.c

index 7bd4fcbc94fe4998d2e330046ef2661809e6c9da..530d802c7c04dabae4cb24c4f93bffd5b4ce6d68 100644 (file)
@@ -1,3 +1,7 @@
+2007-12-07  Bob Wilson  <bob.wilson@acm.org>
+
+       * readelf.c (is_32bit_pcrel_reloc): Add Xtensa.
+       
 2007-12-04  Alan Modra  <amodra@bigpond.net.au>
 
        * readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU.
index d3c660524722c79da59158a9deeb6a2abfcc0f3a..84fb29054d15a07c84c7e5ea00e42958f5c14814 100644 (file)
@@ -8102,6 +8102,9 @@ is_32bit_pcrel_reloc (unsigned int reloc_type)
       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