mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +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.
7 lines
110 B
ArmAsm
7 lines
110 B
ArmAsm
.text
|
|
.global _start
|
|
_start:
|
|
movabsq $strings@SIZE, %rdx
|
|
.section .data.rel,"aw",@progbits
|
|
.quad strings
|