OSDN Git Service

2009-06-22 Christophe Lyon <christophe.lyon@st.com>
authorclyon <clyon>
Mon, 22 Jun 2009 10:55:32 +0000 (10:55 +0000)
committerclyon <clyon>
Mon, 22 Jun 2009 10:55:32 +0000 (10:55 +0000)
commit1d9712ec7f07dd707edd53d54b0ccba21356b2ff
tree68a80f674d6d928d412f01b04da984e4c7266a32
parenta1ad683ae41486a63d2ab81eda9d42039cf27676
2009-06-22  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (elf32_arm_size_stubs): Use PLT address as
destination for defined dynamic symbols when deciding whether to
insert a stub or not.
(allocate_dynrelocs): Make sure functions are not marked as Thumb
when actually accessed through a PLT, even when generating a
shared lib.

ld/testsuite:
* ld-arm/farcall-mixed-app.s: Add new references to check more
modes switching.
* ld-arm/farcall-mixed-lib1.s: Likewise.
* ld-arm/farcall-mixed-app-v5.d: Update expected result.
* farcall-mixed-app.d: Likewise.
* ld-arm/farcall-mixed-lib.d: Likewise.
bfd/ChangeLog
bfd/elf32-arm.c
ld/testsuite/ChangeLog
ld/testsuite/ld-arm/farcall-mixed-app-v5.d
ld/testsuite/ld-arm/farcall-mixed-app.d
ld/testsuite/ld-arm/farcall-mixed-app.s
ld/testsuite/ld-arm/farcall-mixed-lib.d
ld/testsuite/ld-arm/farcall-mixed-lib1.s