aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-xtensa.c
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2009-04-03 16:06:40 +0000
committerSterling Augustine <saugustine@google.com>2009-04-03 16:06:40 +0000
commit3df502ae79fe0bcd297d3462d1a1666b8c89ce3d (patch)
tree0803f85e304a5f4eb783ac995cbf852d004adaec /bfd/elf32-xtensa.c
parent5472f405e240ab93b49942eb5181a5b4987a5417 (diff)
downloadgdb-3df502ae79fe0bcd297d3462d1a1666b8c89ce3d.zip
gdb-3df502ae79fe0bcd297d3462d1a1666b8c89ce3d.tar.gz
gdb-3df502ae79fe0bcd297d3462d1a1666b8c89ce3d.tar.bz2
2009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com>
* elf32-xtensa.c (relax_property_section): Always set r_offset to zero.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r--bfd/elf32-xtensa.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index 856d8a9..0315c2f 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -10015,12 +10015,7 @@ relax_property_section (bfd *abfd,
if (remove_this_rel)
{
offset_rel->r_info = ELF32_R_INFO (0, R_XTENSA_NONE);
- /* In case this is the last entry, move the relocation offset
- to the previous entry, if there is one. */
- if (offset_rel->r_offset >= bytes_to_remove)
- offset_rel->r_offset -= bytes_to_remove;
- else
- offset_rel->r_offset = 0;
+ offset_rel->r_offset = 0;
}
if (bytes_to_remove != 0)