binutils-gdb/ld/testsuite/ld-i386/load1.d
H.J. Lu 410a69a022 i386: Add -z noseparate-code to linker tests
Add -z noseparate-code since these tests check for exact addresses.

	* testsuite/ld-i386/ibt-plt-1.d: Add -z noseparate-code.
	* testsuite/ld-i386/ibt-plt-2a.d: Likewise.
	* testsuite/ld-i386/ibt-plt-2b.d: Likewise.
	* testsuite/ld-i386/ibt-plt-2c.d: Likewise.
	* testsuite/ld-i386/ibt-plt-2d.d: Likewise.
	* testsuite/ld-i386/ibt-plt-3a.d: Likewise.
	* testsuite/ld-i386/ibt-plt-3b.d: Likewise.
	* testsuite/ld-i386/ibt-plt-3c.d: Likewise.
	* testsuite/ld-i386/ibt-plt-3d.d: Likewise.
	* testsuite/ld-i386/load1.d: Likewise.
	* testsuite/ld-i386/pie1.d: Likewise.
	* testsuite/ld-i386/pr20244-1a.d: Likewise.
	* testsuite/ld-i386/pr20244-1b.d: Likewise.
	* testsuite/ld-i386/pr20244-2a.d: Likewise.
	* testsuite/ld-i386/pr20244-2b.d: Likewise.
	* testsuite/ld-i386/pr20244-2c.d: Likewise.
	* testsuite/ld-i386/pr20244-4a.d: Likewise.
	* testsuite/ld-i386/pr20244-4b.d: Likewise.
	* testsuite/ld-i386/pr20830.d: Likewise.
2018-02-16 09:07:58 -08:00

59 lines
2.7 KiB
Makefile

#as: --32 -mrelax-relocations=yes
#ld: -melf_i386 -z noseparate-code
#objdump: -dw --sym
#notarget: i?86-*-nacl* x86_64-*-nacl*
.*: +file format .*
SYMBOL TABLE:
#...
0+8049164 l O .data 0+1 bar
#...
0+8049165 g O .data 0+1 foo
#...
Disassembly of section .text:
0+8048074 <_start>:
[ ]*[a-f0-9]+: c7 c0 64 91 04 08 mov \$0x8049164,%eax
[ ]*[a-f0-9]+: 81 d0 64 91 04 08 adc \$0x8049164,%eax
[ ]*[a-f0-9]+: 81 c3 64 91 04 08 add \$0x8049164,%ebx
[ ]*[a-f0-9]+: 81 e1 64 91 04 08 and \$0x8049164,%ecx
[ ]*[a-f0-9]+: 81 fa 64 91 04 08 cmp \$0x8049164,%edx
[ ]*[a-f0-9]+: 81 cf 64 91 04 08 or \$0x8049164,%edi
[ ]*[a-f0-9]+: 81 de 64 91 04 08 sbb \$0x8049164,%esi
[ ]*[a-f0-9]+: 81 ed 64 91 04 08 sub \$0x8049164,%ebp
[ ]*[a-f0-9]+: 81 f4 64 91 04 08 xor \$0x8049164,%esp
[ ]*[a-f0-9]+: f7 c1 64 91 04 08 test \$0x8049164,%ecx
[ ]*[a-f0-9]+: c7 c0 64 91 04 08 mov \$0x8049164,%eax
[ ]*[a-f0-9]+: 81 d0 64 91 04 08 adc \$0x8049164,%eax
[ ]*[a-f0-9]+: 81 c3 64 91 04 08 add \$0x8049164,%ebx
[ ]*[a-f0-9]+: 81 e1 64 91 04 08 and \$0x8049164,%ecx
[ ]*[a-f0-9]+: 81 fa 64 91 04 08 cmp \$0x8049164,%edx
[ ]*[a-f0-9]+: 81 cf 64 91 04 08 or \$0x8049164,%edi
[ ]*[a-f0-9]+: 81 de 64 91 04 08 sbb \$0x8049164,%esi
[ ]*[a-f0-9]+: 81 ed 64 91 04 08 sub \$0x8049164,%ebp
[ ]*[a-f0-9]+: 81 f4 64 91 04 08 xor \$0x8049164,%esp
[ ]*[a-f0-9]+: f7 c1 64 91 04 08 test \$0x8049164,%ecx
[ ]*[a-f0-9]+: c7 c0 65 91 04 08 mov \$0x8049165,%eax
[ ]*[a-f0-9]+: 81 d0 65 91 04 08 adc \$0x8049165,%eax
[ ]*[a-f0-9]+: 81 c3 65 91 04 08 add \$0x8049165,%ebx
[ ]*[a-f0-9]+: 81 e1 65 91 04 08 and \$0x8049165,%ecx
[ ]*[a-f0-9]+: 81 fa 65 91 04 08 cmp \$0x8049165,%edx
[ ]*[a-f0-9]+: 81 cf 65 91 04 08 or \$0x8049165,%edi
[ ]*[a-f0-9]+: 81 de 65 91 04 08 sbb \$0x8049165,%esi
[ ]*[a-f0-9]+: 81 ed 65 91 04 08 sub \$0x8049165,%ebp
[ ]*[a-f0-9]+: 81 f4 65 91 04 08 xor \$0x8049165,%esp
[ ]*[a-f0-9]+: f7 c1 65 91 04 08 test \$0x8049165,%ecx
[ ]*[a-f0-9]+: c7 c0 65 91 04 08 mov \$0x8049165,%eax
[ ]*[a-f0-9]+: 81 d0 65 91 04 08 adc \$0x8049165,%eax
[ ]*[a-f0-9]+: 81 c3 65 91 04 08 add \$0x8049165,%ebx
[ ]*[a-f0-9]+: 81 e1 65 91 04 08 and \$0x8049165,%ecx
[ ]*[a-f0-9]+: 81 fa 65 91 04 08 cmp \$0x8049165,%edx
[ ]*[a-f0-9]+: 81 cf 65 91 04 08 or \$0x8049165,%edi
[ ]*[a-f0-9]+: 81 de 65 91 04 08 sbb \$0x8049165,%esi
[ ]*[a-f0-9]+: 81 ed 65 91 04 08 sub \$0x8049165,%ebp
[ ]*[a-f0-9]+: 81 f4 65 91 04 08 xor \$0x8049165,%esp
[ ]*[a-f0-9]+: f7 c1 65 91 04 08 test \$0x8049165,%ecx
#pass