old-cross-binutils/ld/testsuite/ld-x86-64/pr18160.s
H.J. Lu b19a8f8545 Skip gc-sections if relocation is incompatible
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.
2015-03-26 08:22:55 -07:00

16 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