mpx.exp: Add -z max-page-size=0x200000 -z noseparate-code

Add -z max-page-size=0x200000 -z noseparate-code since these tests
check for exact addresses.

	* testsuite/ld-x86-64/mpx.exp: Add -z max-page-size=0x200000
	-z noseparate-code.
This commit is contained in:
H.J. Lu 2018-02-16 09:54:56 -08:00
parent 7c9f387aef
commit 197741f19d
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-x86-64/mpx.exp: Add -z max-page-size=0x200000
-z noseparate-code.
2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-x86-64/x86-64.exp: Add -z noseparate-code

View File

@ -116,13 +116,16 @@ run_ld_link_tests {
"-m elf_x86_64 -shared -z bndplt" ""
"--64" {mpx4b.s} {} "libcall1.so"}
{"Build mpx4"
"-m elf_x86_64 -z bndplt --hash-style=sysv tmpdir/libcall1.so" ""
"-m elf_x86_64 -z bndplt --hash-style=sysv tmpdir/libcall1.so \
-z max-page-size=0x200000 -z noseparate-code" ""
"--64" {mpx4a.s} {{objdump -dw mpx4.dd}} "mpx4"}
{"Build mpx3 (-z now)"
"-z now -m elf_x86_64 -z bndplt --hash-style=sysv tmpdir/libcall.so" ""
"-z now -m elf_x86_64 -z bndplt --hash-style=sysv tmpdir/libcall.so \
-z max-page-size=0x200000 -z noseparate-code" ""
"--64" {mpx3a.s} {{objdump -dw mpx3n.dd}} "mpx3n"}
{"Build mpx4 (-z now)"
"-z now -m elf_x86_64 -z bndplt --hash-style=sysv tmpdir/libcall1.so" ""
"-z now -m elf_x86_64 -z bndplt --hash-style=sysv tmpdir/libcall1.so \
-z max-page-size=0x200000 -z noseparate-code" ""
"--64" {mpx4a.s} {{objdump -dw mpx4n.dd}} "mpx4n"}
}