Resolve size relocation with copy relocation
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 6 Sep 2016 20:34:30 +0000 (13:34 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 6 Sep 2016 20:34:44 +0000 (13:34 -0700)
commitd8457a04b71cbd642a00352dce0539fe1fe22dd4
tree8186684ed03e5f53ef3cb15df1698b8ee8d37bdc
parent22d6c51be8de9a091d89c0e11e6e140f333ade62
Resolve size relocation with copy relocation

We can resolve size relocation against symbol which needs copy relocation
when building executable.

bfd/

PR ld/20550
* elf64-x86-64.c (elf_x86_64_relocate_section): Resolve size
relocation with copy relocation when building executable.

ld/

PR ld/20550
* testsuite/ld-x86-64/pr20550a.s: New file.
* testsuite/ld-x86-64/pr20550b.s: Likewise.
* testsuite/ld-x86-64/x86-64.exp (x86_64tests): Add tests for
PR ld/20550.
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/ChangeLog
ld/testsuite/ld-x86-64/pr20550a.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr20550b.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp