Resolve size relocation against non-zero TLS symbol
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Jan 2013 22:50:30 +0000 (22:50 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Jan 2013 22:50:30 +0000 (22:50 +0000)
commit3bea1fcb8b8a9b3c2133c162fe4cd6c91f40cfdf
tree33498089cae58727b371d062fc99963767b83672
parentc60797fda43722bb6fbd5ea8381e465ee6792493
Resolve size relocation against non-zero TLS symbol

bfd/

* elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
non-zero TLS symbol.
(elf_i386_relocate_section): Resolve size relocation against
non-zero TLS symbol.
* elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
for non-zero TLS symbol.
(elf_x86_64_relocate_section): Resolve size relocation against
non-zero TLS symbol.

ld/testsuite/

* ld-size/size-10.rd: Updated.
* ld-size/size-8.rd: Likewise.
* ld-size/size32-2-i386.d: Likewise.
* ld-size/size32-2-x32.d: Likewise.
* ld-size/size32-2-x86-64.d: Likewise.
* ld-size/size64-2-x32.d: Likewise.
* ld-size/size64-2-x86-64.d: Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-size/size-10.rd
ld/testsuite/ld-size/size-8.rd
ld/testsuite/ld-size/size32-2-i386.d
ld/testsuite/ld-size/size32-2-x32.d
ld/testsuite/ld-size/size32-2-x86-64.d
ld/testsuite/ld-size/size64-2-x32.d
ld/testsuite/ld-size/size64-2-x86-64.d