diff options
author | Yury Usishchev <y.usishchev@samsung.com> | 2015-12-22 15:50:13 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-12-22 15:50:13 +0000 |
commit | 491d01d3da18fb61fa6c7c61c091b4cb8c5773f7 (patch) | |
tree | 4f325fdc33925c18aa4db39125a2f91ef8d39e7c /ld/testsuite/ChangeLog | |
parent | 4abd5ed2221c826bcb843794286777452de5c50b (diff) | |
download | gdb-491d01d3da18fb61fa6c7c61c091b4cb8c5773f7.zip gdb-491d01d3da18fb61fa6c7c61c091b4cb8c5773f7.tar.gz gdb-491d01d3da18fb61fa6c7c61c091b4cb8c5773f7.tar.bz2 |
ARM: Fix exidx coverage for relocatable builds.
bfd * elf-bfd.h: Add callback to count additional relocations.
* elf32-arm.c (_arm_elf_section_data): Add new counter.
(insert_cantunwind_after): Increment relocations counter.
(elf32_arm_fix_exidx_coverage): Remove exidx entries and add
terminating CANTUNWIND entry only in final builds.
(elf32_arm_add_relocation): New function.
(elf32_arm_write_section): Add relocations in relocatable builds.
(elf32_arm_count_additional_relocs): New function.
(elf_backend_count_additional_relocs): New define.
* bfd/elflink.c (bfd_elf_final_link): Use callback and adjust size of
.rel section.
* bfd/elfxx-target.h (elf_backend_count_additional_relocs): New define.
ld * emultempl/armelf.em (gld${EMULATION_NAME}_after_allocation): Call
elf32_arm_fix_exidx_coverage for relocatable builds.
ld/testsuite
* ld-arm/arm-elf.exp: New test.
* ld-arm/unwind-rel.d: New file.
* ld-arm/unwind-rel1.s: New file.
* ld-arm/unwind-rel2.s: New file.
* ld-arm/unwind-rel3.s: New file.
Diffstat (limited to 'ld/testsuite/ChangeLog')
-rw-r--r-- | ld/testsuite/ChangeLog | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index d5982b9..d8b2d3c 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,14 +1,22 @@ +2015-12-21 Yury Usishchev <y.usishchev@samsung.com> + + * ld-arm/arm-elf.exp: New test. + * ld-arm/unwind-rel.d: New file. + * ld-arm/unwind-rel1.s: New file. + * ld-arm/unwind-rel2.s: New file. + * ld-arm/unwind-rel3.s: New file. + 2015-12-22 Mickael Guene <mickael.guene@st.com> * ld-arm/arm-elf.exp: New tests. - * ld-arm/thumb1-input-section-flag-match.d: New - * ld-arm/thumb1-input-section-flag-match.s: New - * ld-arm/thumb1-noread-not-present-mixing-two-section.d: New - * ld-arm/thumb1-noread-not-present-mixing-two-section.s: New - * ld-arm/thumb1-noread-present-one-section.d: New - * ld-arm/thumb1-noread-present-one-section.s: New - * ld-arm/thumb1-noread-present-two-section.d: New - * ld-arm/thumb1-noread-present-two-section.s: New + * ld-arm/thumb1-input-section-flag-match.d: New. + * ld-arm/thumb1-input-section-flag-match.s: New. + * ld-arm/thumb1-noread-not-present-mixing-two-section.d: New. + * ld-arm/thumb1-noread-not-present-mixing-two-section.s: New. + * ld-arm/thumb1-noread-present-one-section.d: New. + * ld-arm/thumb1-noread-present-one-section.s: New. + * ld-arm/thumb1-noread-present-two-section.d: New. + * ld-arm/thumb1-noread-present-two-section.s: New. 2015-12-16 Mickael Guene <mickael.guene@st.com> |