This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] mpx.exp: Add -z max-page-size=0x200000 -z noseparate-code


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=197741f19d8e6304f45efd8e960ffce4712e3ea0

commit 197741f19d8e6304f45efd8e960ffce4712e3ea0
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Feb 16 09:54:56 2018 -0800

    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.

Diff:
---
 ld/ChangeLog                   | 5 +++++
 ld/testsuite/ld-x86-64/mpx.exp | 9 ++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 58b5054..7012160 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
 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
 	-z max-page-size=0x200000, excluding NaCl target.
 
diff --git a/ld/testsuite/ld-x86-64/mpx.exp b/ld/testsuite/ld-x86-64/mpx.exp
index 1514015..753f7ca 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"}
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]