diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2013-01-18 22:50:26 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-01-18 22:50:26 +0000 |
commit | 605f3766434cbed0e7a719545639b8a1e926e14c (patch) | |
tree | 25e16883f537117ea145d3b3e59f216aa2e60937 /ld/testsuite/ld-size/size32-2-x32.d | |
parent | 0e0646ad6f21c4d6230c31f452b73f133f4b5777 (diff) | |
download | binutils-redhat-605f3766434cbed0e7a719545639b8a1e926e14c.tar.gz |
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.
Diffstat (limited to 'ld/testsuite/ld-size/size32-2-x32.d')
-rw-r--r-- | ld/testsuite/ld-size/size32-2-x32.d | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ld/testsuite/ld-size/size32-2-x32.d b/ld/testsuite/ld-size/size32-2-x32.d index 9c1eae2695..5049c4ad91 100644 --- a/ld/testsuite/ld-size/size32-2-x32.d +++ b/ld/testsuite/ld-size/size32-2-x32.d @@ -8,13 +8,11 @@ DYNAMIC RELOCATION RECORDS OFFSET TYPE VALUE -0+200278 R_X86_64_SIZE32 xxx -0+20027c R_X86_64_SIZE32 yyy -0+200280 R_X86_64_SIZE32 zzz -0+200284 R_X86_64_SIZE32 zzz-0x0000001e -0+200288 R_X86_64_SIZE32 zzz\+0x0000001e +0+200268 R_X86_64_SIZE32 zzz +0+20026c R_X86_64_SIZE32 zzz-0x0000001e +0+200270 R_X86_64_SIZE32 zzz\+0x0000001e Contents of section .data: - 200278 00000000 00000000 00000000 00000000 ................ - 200288 00000000 .... + 200260 28000000 28000000 00000000 00000000 ................ + 200270 00000000 .... |