binutils-gdb/ld/testsuite/ld-i386/pie1-nacl.d
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

19 lines
320 B
Makefile

#source: pie1.s
#as: --32
#ld: -pie -melf_i386 -z relro
#objdump: -dw --sym
#target: i?86-*-nacl* x86_64-*-nacl*
.*: +file format .*
SYMBOL TABLE:
#...
10020000 l O .got.plt 0+ _GLOBAL_OFFSET_TABLE_
#...
Disassembly of section .text:
0+ <_start>:
+0: 8d 80 00 00 fe ef lea -0x10020000\(%eax\),%eax
#pass