binutils-gdb/ld/testsuite/ld-i386/pie1.s
H.J. Lu 89d249d2f2 i386: Add tests for PIE with undefined weak symbol
* testsuite/ld-i386/i386.exp: Run pie1 and pie1-nacl.
	* testsuite/ld-i386/pie1-nacl.d: New file.
	* testsuite/ld-i386/pie1.d: Likewise.
	* testsuite/ld-i386/pie1.s: Likewise.
2017-07-17 12:42:32 -07:00

6 lines
71 B
ArmAsm

.text
.global _start
.weak foo
_start:
leal foo@GOTOFF(%eax), %eax