binutils-gdb/gold/testsuite/pr21430.s
Igor Kudrin 6bf56e7482 Fix misplacement of a relaxed section on AArch64.
gold/ChangeLog
	PR gold/21430
	* aarch64.cc
	(AArch64_relobj::convert_input_section_to_relaxed_section):
	Set the section offset to -1ULL.
	(Target_aarch64::relocate_section): Adjust the view in case
	of a relaxed input section.
	* testsuite/Makefile.am (pr21430): New test.
	* testsuite/Makefile.in: Regenerate
	* testsuite/pr21430.s: New test source file.
	* testsuite/pr21430.sh: New test script.
2017-05-12 15:24:32 -07:00

16 lines
215 B
ArmAsm

.globl _start, foo, bar
.section ".text.start", "ax"
_start:
bl foo
.space 0x7000000
.section ".text.bar", "ax"
bar:
.space 0x1000000
.size bar, .-bar
.section ".text.foo", "ax"
foo:
b _start