[1/8] Add -z noseparate-code to ld-elf tests

Message ID 20180215142643.32242-1-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.
These tests fail due to one extra PT_LOAD segment with -z separate-code.

	* testsuite/ld-elf/pr19162.d: Add -z noseparate-code.
	* testsuite/ld-elf/textaddr1.d: Likewise.
	* testsuite/ld-elf/textaddr2.d: Likewise.
	* testsuite/ld-elf/textaddr4.d: Likewise.
	* testsuite/ld-elf/textaddr6.d: Likewise.
---
 ld/testsuite/ld-elf/pr19162.d   | 2 +-
 ld/testsuite/ld-elf/textaddr1.d | 2 +-
 ld/testsuite/ld-elf/textaddr2.d | 2 +-
 ld/testsuite/ld-elf/textaddr4.d | 2 +-
 ld/testsuite/ld-elf/textaddr6.d | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.14.3

Comments

Alan Modra Feb. 16, 2018, 11:22 a.m. | #1
On Thu, Feb 15, 2018 at 06:26:36AM -0800, H.J. Lu wrote:
> These tests fail due to one extra PT_LOAD segment with -z separate-code.

> 

> 	* testsuite/ld-elf/pr19162.d: Add -z noseparate-code.

> 	* testsuite/ld-elf/textaddr1.d: Likewise.

> 	* testsuite/ld-elf/textaddr2.d: Likewise.

> 	* testsuite/ld-elf/textaddr4.d: Likewise.

> 	* testsuite/ld-elf/textaddr6.d: Likewise.


Thanks, please apply.

-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/ld/testsuite/ld-elf/pr19162.d b/ld/testsuite/ld-elf/pr19162.d
index 4d706ffaca..5d5c1f714d 100644
--- a/ld/testsuite/ld-elf/pr19162.d
+++ b/ld/testsuite/ld-elf/pr19162.d
@@ -1,6 +1,6 @@ 
 #source: pr19162a.s
 #source: pr19162b.s
-#ld: -shared -z max-page-size=0x200000
+#ld: -shared -z max-page-size=0x200000 -z noseparate-code
 #readelf: -l --wide
 #target: *-*-linux* *-*-gnu* *-*-nacl*
 #notarget: arc*-*-* hppa*-*-*
diff --git a/ld/testsuite/ld-elf/textaddr1.d b/ld/testsuite/ld-elf/textaddr1.d
index e1d6731a03..19c7d8e8eb 100644
--- a/ld/testsuite/ld-elf/textaddr1.d
+++ b/ld/testsuite/ld-elf/textaddr1.d
@@ -1,5 +1,5 @@ 
 #source: maxpage1.s
-#ld: -Ttext-segment 0x7000000 -z max-page-size=0x200000
+#ld: -Ttext-segment 0x7000000 -z max-page-size=0x200000 -z noseparate-code
 #readelf: -l --wide
 #target: *-*-linux-gnu *-*-gnu*
 
diff --git a/ld/testsuite/ld-elf/textaddr2.d b/ld/testsuite/ld-elf/textaddr2.d
index bcd3658bb7..50224c8b3c 100644
--- a/ld/testsuite/ld-elf/textaddr2.d
+++ b/ld/testsuite/ld-elf/textaddr2.d
@@ -1,5 +1,5 @@ 
 #source: maxpage1.s
-#ld: -shared -Ttext-segment 0x7000000 -z max-page-size=0x200000
+#ld: -shared -Ttext-segment 0x7000000 -z max-page-size=0x200000 -z noseparate-code
 #readelf: -l --wide
 #target: *-*-linux-gnu *-*-gnu*
 
diff --git a/ld/testsuite/ld-elf/textaddr4.d b/ld/testsuite/ld-elf/textaddr4.d
index 16df9a8ab1..d596e40f91 100644
--- a/ld/testsuite/ld-elf/textaddr4.d
+++ b/ld/testsuite/ld-elf/textaddr4.d
@@ -1,5 +1,5 @@ 
 #source: maxpage1.s
-#ld: -z max-page-size=0x10000 -Ttext-segment 0x10000
+#ld: -z max-page-size=0x10000 -Ttext-segment 0x10000 -z noseparate-code
 #readelf: -l --wide
 #target: *-*-linux-gnu *-*-gnu*
 
diff --git a/ld/testsuite/ld-elf/textaddr6.d b/ld/testsuite/ld-elf/textaddr6.d
index 584784b2d5..8015dcb28a 100644
--- a/ld/testsuite/ld-elf/textaddr6.d
+++ b/ld/testsuite/ld-elf/textaddr6.d
@@ -1,5 +1,5 @@ 
 #source: maxpage1.s
-#ld: -shared -z max-page-size=0x10000 -Ttext-segment 0x10000
+#ld: -shared -z max-page-size=0x10000 -Ttext-segment 0x10000 -z noseparate-code
 #readelf: -l --wide
 #target: *-*-linux-gnu *-*-gnu*