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.
This commit is contained in:
H.J. Lu 2018-02-16 09:07:46 -08:00
parent 75bd00e87e
commit 410a69a022
20 changed files with 41 additions and 19 deletions

View File

@ -1,3 +1,25 @@
2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
* 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 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-i386/pr19636-1a.d: Updated.

View File

@ -1,5 +1,5 @@
#as: --32
#ld: -shared -m elf_i386 --hash-style=sysv
#ld: -shared -m elf_i386 --hash-style=sysv -z noseparate-code
#objdump: -dw
.*: +file format .*

View File

@ -1,6 +1,6 @@
#source: ibt-plt-2.s
#as: --32
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv -z noseparate-code
#objdump: -dw
.*: +file format .*

View File

@ -1,6 +1,6 @@
#source: ibt-plt-2.s
#as: --32
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv -z noseparate-code
#readelf: -n -wf
Contents of the .eh_frame section:

View File

@ -1,6 +1,6 @@
#source: ibt-plt-2.s
#as: --32
#ld: -shared -m elf_i386 -z ibt --hash-style=sysv
#ld: -shared -m elf_i386 -z ibt --hash-style=sysv -z noseparate-code
#objdump: -dw
.*: +file format .*

View File

@ -1,6 +1,6 @@
#source: ibt-plt-2.s
#as: --32
#ld: -shared -m elf_i386 -z ibt --hash-style=sysv
#ld: -shared -m elf_i386 -z ibt --hash-style=sysv -z noseparate-code
#readelf: -n -wf
Contents of the .eh_frame section:

View File

@ -1,6 +1,6 @@
#source: ibt-plt-3.s
#as: --32
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv -z noseparate-code
#objdump: -dw
.*: +file format .*

View File

@ -1,6 +1,6 @@
#source: ibt-plt-3.s
#as: --32
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv -z noseparate-code
#readelf: -wf -n
Contents of the .eh_frame section:

View File

@ -1,6 +1,6 @@
#source: ibt-plt-3.s
#as: --32
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv -z noseparate-code
#objdump: -dw
.*: +file format .*

View File

@ -1,6 +1,6 @@
#source: ibt-plt-3.s
#as: --32
#ld: -shared -m elf_i386 -z ibt --hash-style=sysv
#ld: -shared -m elf_i386 -z ibt --hash-style=sysv -z noseparate-code
#readelf: -wf -n
Contents of the .eh_frame section:

View File

@ -1,5 +1,5 @@
#as: --32 -mrelax-relocations=yes
#ld: -melf_i386
#ld: -melf_i386 -z noseparate-code
#objdump: -dw --sym
#notarget: i?86-*-nacl* x86_64-*-nacl*

View File

@ -1,5 +1,5 @@
#as: --32
#ld: -pie -melf_i386 -z relro
#ld: -pie -melf_i386 -z relro -z noseparate-code
#objdump: -dw --sym
#notarget: i?86-*-nacl* x86_64-*-nacl*

View File

@ -1,6 +1,6 @@
#source: pr20244-1.s
#as: --32
#ld: -m elf_i386
#ld: -m elf_i386 -z noseparate-code
#objdump: --sym -dw
#notarget: i?86-*-nacl* x86_64-*-nacl*

View File

@ -1,6 +1,6 @@
#source: pr20244-1.s
#as: --32
#ld: -m elf_i386
#ld: -m elf_i386 -z noseparate-code
#objdump: -s -j .got
#notarget: i?86-*-nacl* x86_64-*-nacl*

View File

@ -1,6 +1,6 @@
#source: pr20244-2.s
#as: --32
#ld: -m elf_i386
#ld: -m elf_i386 -z noseparate-code
#objdump: --sym -dw
#notarget: i?86-*-nacl* x86_64-*-nacl*

View File

@ -1,6 +1,6 @@
#source: pr20244-2.s
#as: --32
#ld: -m elf_i386
#ld: -m elf_i386 -z noseparate-code
#objdump: -s -j .got.plt
#notarget: i?86-*-nacl* x86_64-*-nacl*

View File

@ -1,6 +1,6 @@
#source: pr20244-2.s
#as: --32
#ld: -m elf_i386
#ld: -m elf_i386 -z noseparate-code
#readelf: -rW
#notarget: i?86-*-nacl* x86_64-*-nacl*

View File

@ -1,6 +1,6 @@
#source: pr20244-4.s
#as: --32
#ld: -m elf_i386
#ld: -m elf_i386 -z noseparate-code
#objdump: -dw
#notarget: i?86-*-nacl* x86_64-*-nacl*

View File

@ -1,6 +1,6 @@
#source: pr20244-4.s
#as: --32
#ld: -m elf_i386
#ld: -m elf_i386 -z noseparate-code
#objdump: -s -j .got
#notarget: i?86-*-nacl* x86_64-*-nacl*

View File

@ -1,6 +1,6 @@
#name: PR ld/20830 (.plt.got)
#as: --32
#ld: -melf_i386 -shared -z relro --ld-generated-unwind-info --hash-style=sysv
#ld: -melf_i386 -shared -z relro --ld-generated-unwind-info --hash-style=sysv -z noseparate-code
#objdump: -dw -Wf
.*: +file format .*