[1/3] mpx.exp: Add -z max-page-size=0x200000 -z noseparate-code

Message ID 20180216010200.5858-1-hjl.tools@gmail.com
State New
Headers show
Series
  • [1/3] mpx.exp: Add -z max-page-size=0x200000 -z noseparate-code
Related show

Commit Message

H.J. Lu Feb. 16, 2018, 1:01 a.m.
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.
---
 ld/testsuite/ld-x86-64/mpx.exp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

-- 
2.14.3

Comments

H.J. Lu Feb. 16, 2018, 5:54 p.m. | #1
On Thu, Feb 15, 2018 at 5:01 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.


I am checking this in.


-- 
H.J.

Patch

diff --git a/ld/testsuite/ld-x86-64/mpx.exp b/ld/testsuite/ld-x86-64/mpx.exp
index 15140151f5..753f7ca2cf 100644
--- a/ld/testsuite/ld-x86-64/mpx.exp
+++ b/ld/testsuite/ld-x86-64/mpx.exp
@@ -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"}
 }