mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
d8457a04b7
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.
11 lines
170 B
ArmAsm
11 lines
170 B
ArmAsm
.globl strings
|
|
.section .rodata
|
|
.LC0:
|
|
.string "test"
|
|
.section .data.rel.local,"aw",@progbits
|
|
.align 8
|
|
.type strings, @object
|
|
.size strings, 8
|
|
strings:
|
|
.quad .LC0
|