[6/8] x86-64: Add -z max-page-size=0x200000 -z noseparate-code to IFUNC tests

Message ID 20180215142643.32242-6-hjl.tools@gmail.com
State New
Headers show
Series
  • [1/8] Add -z noseparate-code to ld-elf tests
Related show

Commit Message

H.J. Lu Feb. 15, 2018, 2:26 p.m.
Add -z max-page-size=0x200000 -z noseparate-code since these tests
check for exact addresses.

	* testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Add
	 -z max-page-size=0x200000 -z noseparate-code.
	* testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
	* testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
	* testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
	* testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
	* testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
	* testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
---
 ld/testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d | 2 +-
 ld/testsuite/ld-ifunc/ifunc-2-x86-64-now.d       | 2 +-
 ld/testsuite/ld-ifunc/ifunc-2-x86-64.d           | 2 +-
 ld/testsuite/ld-ifunc/ifunc-21-x86-64.d          | 2 +-
 ld/testsuite/ld-ifunc/ifunc-22-x86-64.d          | 2 +-
 ld/testsuite/ld-ifunc/pr17154-x86-64-now.d       | 2 +-
 ld/testsuite/ld-ifunc/pr17154-x86-64.d           | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.14.3

Comments

H.J. Lu Feb. 16, 2018, 5:38 p.m. | #1
On Thu, Feb 15, 2018 at 6:26 AM, 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-ifunc/ifunc-2-local-x86-64-now.d: Add

>          -z max-page-size=0x200000 -z noseparate-code.

>         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.

>         * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.

>         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.

>         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.

>         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.

>         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.


I am checking this in.


-- 
H.J.

Patch

diff --git a/ld/testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d b/ld/testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d
index d93709c069..e466ef6e13 100644
--- a/ld/testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d
+++ b/ld/testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d
@@ -1,6 +1,6 @@ 
 #source: ifunc-2-local-x86-64.s
 #as: --64
-#ld: -z now -shared -melf_x86_64 --hash-style=sysv
+#ld: -z now -shared -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 #target: x86_64-*-*
 #notarget: x86_64-*-nacl*
diff --git a/ld/testsuite/ld-ifunc/ifunc-2-x86-64-now.d b/ld/testsuite/ld-ifunc/ifunc-2-x86-64-now.d
index 2328679f44..261f0566b7 100644
--- a/ld/testsuite/ld-ifunc/ifunc-2-x86-64-now.d
+++ b/ld/testsuite/ld-ifunc/ifunc-2-x86-64-now.d
@@ -1,6 +1,6 @@ 
 #source: ifunc-2-x86-64.s
 #as: --64
-#ld: -z now -shared -melf_x86_64 --hash-style=sysv
+#ld: -z now -shared -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 #target: x86_64-*-*
 #notarget: x86_64-*-nacl*
diff --git a/ld/testsuite/ld-ifunc/ifunc-2-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-2-x86-64.d
index b776b33907..673b832d10 100644
--- a/ld/testsuite/ld-ifunc/ifunc-2-x86-64.d
+++ b/ld/testsuite/ld-ifunc/ifunc-2-x86-64.d
@@ -1,5 +1,5 @@ 
 #as: --64
-#ld: -shared -melf_x86_64 --hash-style=sysv
+#ld: -shared -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 #target: x86_64-*-*
 
diff --git a/ld/testsuite/ld-ifunc/ifunc-21-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-21-x86-64.d
index fd42acc3fe..dbddc55dc3 100644
--- a/ld/testsuite/ld-ifunc/ifunc-21-x86-64.d
+++ b/ld/testsuite/ld-ifunc/ifunc-21-x86-64.d
@@ -1,5 +1,5 @@ 
 #as: --64 -mrelax-relocations=yes
-#ld: -melf_x86_64
+#ld: -melf_x86_64 -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 #target: x86_64-*-*
 
diff --git a/ld/testsuite/ld-ifunc/ifunc-22-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-22-x86-64.d
index fd42acc3fe..dbddc55dc3 100644
--- a/ld/testsuite/ld-ifunc/ifunc-22-x86-64.d
+++ b/ld/testsuite/ld-ifunc/ifunc-22-x86-64.d
@@ -1,5 +1,5 @@ 
 #as: --64 -mrelax-relocations=yes
-#ld: -melf_x86_64
+#ld: -melf_x86_64 -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 #target: x86_64-*-*
 
diff --git a/ld/testsuite/ld-ifunc/pr17154-x86-64-now.d b/ld/testsuite/ld-ifunc/pr17154-x86-64-now.d
index 60edb9ebe8..da5d7ce72d 100644
--- a/ld/testsuite/ld-ifunc/pr17154-x86-64-now.d
+++ b/ld/testsuite/ld-ifunc/pr17154-x86-64-now.d
@@ -1,6 +1,6 @@ 
 #source: pr17154-x86.s
 #as: --64
-#ld: -z now -shared -melf_x86_64 --hash-style=sysv
+#ld: -z now -shared -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 #target: x86_64-*-*
 #notarget: x86_64-*-nacl*
diff --git a/ld/testsuite/ld-ifunc/pr17154-x86-64.d b/ld/testsuite/ld-ifunc/pr17154-x86-64.d
index b3d7ed0650..737fb258db 100644
--- a/ld/testsuite/ld-ifunc/pr17154-x86-64.d
+++ b/ld/testsuite/ld-ifunc/pr17154-x86-64.d
@@ -1,6 +1,6 @@ 
 #source: pr17154-x86.s
 #as: --64
-#ld: -shared -melf_x86_64 --hash-style=sysv
+#ld: -shared -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 #target: x86_64-*-*