From 2fcb970637fc082a6d12666ba9a15da15a16dd9d Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Sat, 8 Dec 2007 01:04:59 +0000 Subject: [PATCH] * readelf.c (is_32bit_pcrel_reloc): Add Xtensa. --- binutils/ChangeLog | 4 ++++ binutils/readelf.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7bd4fcbc94f..530d802c7c0 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2007-12-07 Bob Wilson + + * readelf.c (is_32bit_pcrel_reloc): Add Xtensa. + 2007-12-04 Alan Modra * readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU. diff --git a/binutils/readelf.c b/binutils/readelf.c index d3c66052472..84fb29054d1 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 -- 2.39.5