aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-02-16 06:25:36 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-02-16 06:25:49 -0800
commit75cdede09952b5aa8c6d4ceb0de10c5e93002a6d (patch)
tree4fa7e3d820fae51775d4098429903444b9348a98 /ld
parentd00dd7dc5e415503de88614bf2ea4aafa2bca819 (diff)
downloadgdb-75cdede09952b5aa8c6d4ceb0de10c5e93002a6d.zip
gdb-75cdede09952b5aa8c6d4ceb0de10c5e93002a6d.tar.gz
gdb-75cdede09952b5aa8c6d4ceb0de10c5e93002a6d.tar.bz2
Add -z noseparate-code to ld-elf tests
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/testsuite/ld-elf/pr19162.d2
-rw-r--r--ld/testsuite/ld-elf/textaddr1.d2
-rw-r--r--ld/testsuite/ld-elf/textaddr2.d2
-rw-r--r--ld/testsuite/ld-elf/textaddr4.d2
-rw-r--r--ld/testsuite/ld-elf/textaddr6.d2
6 files changed, 13 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index a1d0049..0e6c4bd 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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.
diff --git a/ld/testsuite/ld-elf/pr19162.d b/ld/testsuite/ld-elf/pr19162.d
index 4d706ff..5d5c1f7 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 e1d6731..19c7d8e 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 bcd3658..50224c8 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 16df9a8..d596e40 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 584784b..8015dcb 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*