From 3df502ae79fe0bcd297d3462d1a1666b8c89ce3d Mon Sep 17 00:00:00 2001 From: Sterling Augustine Date: Fri, 3 Apr 2009 16:06:40 +0000 Subject: [PATCH] 2009-04-02 Sterling Augustine * elf32-xtensa.c (relax_property_section): Always set r_offset to zero. --- bfd/ChangeLog | 5 +++++ bfd/elf32-xtensa.c | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ba220010e7f..ea46be6b021 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-04-02 Sterling Augustine + + * elf32-xtensa.c (relax_property_section): Always set r_offset + to zero. + 2009-04-02 Christophe Lyon * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb, diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index 856d8a91c4d..0315c2ff4f4 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) -- 2.30.2