binutils-gdb/ld/testsuite/ld-x86-64/pr20093-1.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

12 lines
203 B
ArmAsm

.section .lbss,"aw",@nobits
foo1:
.space 1073741824
.space 1073741824
.space 1073741824
.text
.globl _start
.type _start, @function
_start:
movq foo1@GOTPCREL(%rip), %rax
.size _start, .-_start