mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
b19a8f8545
This patch skips gc-sections if input relocation is incompatible with output. bfd/ PR ld/18160 * elflink.c (elf_gc_sweep): Skip if relocation is incompatible. (bfd_elf_gc_sections): Likewise. ld/testsuite/ PR ld/18160 * ld-x86-64/pr18160.d: New file. * ld-x86-64/pr18160.s: Likewise. * ld-x86-64/pr18160.t: Likewise. * ld-x86-64/x86-64.exp: Run pr18160.
17 lines
270 B
ArmAsm
17 lines
270 B
ArmAsm
.section .text.start,"ax",@progbits
|
|
.globl start
|
|
.type start, @function
|
|
start:
|
|
.cfi_startproc
|
|
jmp foo
|
|
.cfi_endproc
|
|
.size start, .-start
|
|
.section .text.foo,"ax",@progbits
|
|
.globl foo
|
|
.type foo, @function
|
|
foo:
|
|
.cfi_startproc
|
|
ret
|
|
.cfi_endproc
|
|
.size foo, .-foo
|