Add -z noseparate-code to ld-elf tests
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Feb 2018 14:25:36 +0000 (06:25 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Feb 2018 14:25:49 +0000 (06:25 -0800)
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/ChangeLog
ld/testsuite/ld-elf/pr19162.d
ld/testsuite/ld-elf/textaddr1.d
ld/testsuite/ld-elf/textaddr2.d
ld/testsuite/ld-elf/textaddr4.d
ld/testsuite/ld-elf/textaddr6.d

index a1d00494143c5a9adc397ca862881410bab43bc4..0e6c4bd1aa463b6cd797c13b54cad11fcf5a1fe6 100644 (file)
@@ -1,3 +1,11 @@
+2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * 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.
+
 2018-02-15  Jim Wilson  <jimw@sifive.com>
 
        * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run pcrel-lo-addend test.
index 4d706ffaca2429bf03a45cd9efde9dfe3473391f..5d5c1f714d6ec1eaea7d21de10d57de14f6c73d2 100644 (file)
@@ -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*-*-*
index e1d6731a03d863e26114b5770930724b9ff2c92b..19c7d8e8eb2230fe6b1a148296381a9a92870b78 100644 (file)
@@ -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*
 
index bcd3658bb75327dbe0075a787e4c8a1fcaf7c885..50224c8b3c754e6b0570208e397c74818bc91e79 100644 (file)
@@ -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*
 
index 16df9a8ab1e2f16912b88d9dd09196d9a3e79959..d596e40f91ef5463798bb90ee06bb97c6593d371 100644 (file)
@@ -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*
 
index 584784b2d5911300392ed7616730488e7dbee8fe..8015dcb28af164f351f984fa08e23aacf6d24575 100644 (file)
@@ -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*
 
This page took 0.030363 seconds and 4 git commands to generate.