binutils-gdb/ld/testsuite/ld-x86-64/pr26939.s
H.J. Lu d0089f12f6 ld/x86-64: Add PR gold/26939 tests
GOTPCRELX relocations can be transformed only when addend == -4.  Add
tests for GOTPCRELX relocations with addend != -4.

	PR gold/26939
	* testsuite/ld-x86-64/pr26939-x32.d: New file.
	* testsuite/ld-x86-64/pr26939.d: Likewise.
	* testsuite/ld-x86-64/pr26939.s: Likewise.
	* testsuite/ld-x86-64/x86-64.exp: Run PR gold/26939 tests.
2020-11-24 11:32:26 -08:00

6 lines
90 B
ArmAsm

.text
.globl _start
.type _start,@function
_start:
movl _start@GOTPCREL+4(%rip), %eax