[ARM] FDPIC: Implement Thumb-only PLT for FDPIC.
authorChristophe Lyon <christophe.lyon@st.com>
Tue, 20 Mar 2018 09:56:17 +0000 (10:56 +0100)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 25 Apr 2018 21:01:53 +0000 (21:01 +0000)
commit59029f57eba1763bad67167c2805d8df3dfa2285
treefc77b4b2ecf73641395bd005a55f111360682081
parent4b86cbe91c130077f967fa84b0abdbb68e9ec742
[ARM] FDPIC: Implement Thumb-only PLT for FDPIC.

2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
Mickaël Guêné  <mickael.guene@st.com>

bfd/
* elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
(elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
(elf32_arm_populate_plt_entry): Likewise.
(elf32_arm_output_plt_map_1): Likewise.
(elf32_arm_output_arch_local_syms): Likewise.

ld/testsuite/
* arm-elf.exp: Execute the new FDPIC Thumb-only tests.
* fdpic-main-m.d: New test.
* fdpic-main-m.s: New.
* fdpic-main-m.sym: New.
* fdpic-shared-m.d: New test.
* fdpic-shared-m.s: New.
* fdpic-shared-m.sym: New.
bfd/ChangeLog
bfd/elf32-arm.c
ld/ChangeLog
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-arm/fdpic-main-m.d [new file with mode: 0644]
ld/testsuite/ld-arm/fdpic-main-m.s [new file with mode: 0644]
ld/testsuite/ld-arm/fdpic-main-m.sym [new file with mode: 0644]
ld/testsuite/ld-arm/fdpic-shared-m.d [new file with mode: 0644]
ld/testsuite/ld-arm/fdpic-shared-m.s [new file with mode: 0644]
ld/testsuite/ld-arm/fdpic-shared-m.sym [new file with mode: 0644]