binutils-gdb/ld/testsuite/ld-x86-64/pr20093-2.s
H.J. Lu 2168b2688a Don't convert GOTPCREL relocation against large section
bfd/

	PR ld/20093
	* elf64-x86-64.c (elf_x86_64_convert_load_reloc): Don't convert
	GOTPCREL relocation against large section.

ld/

	PR ld/20093
	* testsuite/ld-x86-64/pr20093-1.d: New file.
	* testsuite/ld-x86-64/pr20093-1.s: Likewise.
	* testsuite/ld-x86-64/pr20093-2.d: Likewise.
	* testsuite/ld-x86-64/pr20093-2.s: Likewise.
	* testsuite/ld-x86-64/x86-64.exp: Run pr20093-1 and pr20093-2.
2016-05-13 11:07:02 -07:00

10 lines
204 B
ArmAsm

.largecomm foo1,1073741824,32
.largecomm foo2,1073741824,32
.largecomm foo3,1073741824,32
.text
.globl _start
.type _start, @function
_start:
movq foo1@GOTPCREL(%rip), %rax
.size _start, .-_start