aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-12-08 01:04:59 +0000
committerBob Wilson <bob.wilson@acm.org>2007-12-08 01:04:59 +0000
commit2fcb970637fc082a6d12666ba9a15da15a16dd9d (patch)
tree8a1ce63e65c09a32c0c04ae6260dda8bc35810c2 /binutils/readelf.c
parentb2e4cf1e96809f9087f5d899069683f7c11d06e0 (diff)
downloadgdb-2fcb970637fc082a6d12666ba9a15da15a16dd9d.zip
gdb-2fcb970637fc082a6d12666ba9a15da15a16dd9d.tar.gz
gdb-2fcb970637fc082a6d12666ba9a15da15a16dd9d.tar.bz2
* readelf.c (is_32bit_pcrel_reloc): Add Xtensa.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index d3c6605..84fb290 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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