diff options
author | Nick Clifton <nickc@redhat.com> | 2001-08-31 16:23:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-08-31 16:23:25 +0000 |
commit | c6f2e93352302f384fdeb8fac64b75a9cd67bf63 (patch) | |
tree | 22fa8fd3166e2d62c3b52c3f066487157c07d095 /bfd | |
parent | 3c4671d518eccfe7874a7cbe0ce8f9d0af16802e (diff) | |
download | gdb-c6f2e93352302f384fdeb8fac64b75a9cd67bf63.tar.gz |
Do not rightshift recomputed addend during relocatable link if not USE_REL.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 3 | ||||
-rw-r--r-- | bfd/elf32-arm.h | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4f3b21196a6..b2eb1c9225a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com> + * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift + recomputed addend during relocatable link. + * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one error. diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h index fcde30ec84c..2b627ec13f7 100644 --- a/bfd/elf32-arm.h +++ b/bfd/elf32-arm.h @@ -1810,7 +1810,7 @@ elf32_arm_relocate_section (output_bfd, info, input_bfd, input_section, || r_type == R_ARM_GNU_VTINHERIT) continue; - elf32_arm_info_to_howto (input_bfd, & bfd_reloc, rel); + elf32_arm_info_to_howto (input_bfd, & bfd_reloc, (Elf32_Internal_Rel *) rel); howto = bfd_reloc.howto; if (info->relocateable) @@ -1829,8 +1829,7 @@ elf32_arm_relocate_section (output_bfd, info, input_bfd, input_section, arm_add_to_rel (input_bfd, contents + rel->r_offset, howto, sec->output_offset + sym->st_value); #else - rel->r_addend += (sec->output_offset + sym->st_value) - >> howto->rightshift; + rel->r_addend += (sec->output_offset + sym->st_value); #endif } } |