mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
20e52bd2b8
bfd/ * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count for non-zero TLS symbol. (elf_i386_relocate_section): Don't resolve size relocation against non-zero TLS symbol. * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear pc_count for non-zero TLS symbol. (elf_x86_64_relocate_section): Don't 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. * ld-size/size.exp (run_time_tests): Pass --hash-styl=gnu to linker for size-8 test.
21 lines
485 B
Makefile
21 lines
485 B
Makefile
#source: size32-2.s
|
|
#as: --32
|
|
#ld: -shared -melf_i386
|
|
#objdump: -R -s -j .data
|
|
#target: x86_64-*-* i?86-*-*
|
|
|
|
.*: +file format .*
|
|
|
|
DYNAMIC RELOCATION RECORDS
|
|
OFFSET TYPE VALUE
|
|
0+123c R_386_SIZE32 xxx
|
|
0+1240 R_386_SIZE32 yyy
|
|
0+1244 R_386_SIZE32 zzz
|
|
0+1248 R_386_SIZE32 zzz
|
|
0+124c R_386_SIZE32 zzz
|
|
|
|
|
|
Contents of section .data:
|
|
123c 00000000 00000000 00000000 e2ffffff ................
|
|
124c 1e000000 ....
|