aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-01-11 20:46:01 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-01-11 20:46:01 -0800
commit33eff4ce18fbee82ef39838b7c8623aed17dea60 (patch)
treecfa5283aeed670246c656b4979870f09ae901f55 /ld
parentcf9e7f1f07efa2ce6846d8a29015dd8fb70197b0 (diff)
downloadbinutils-33eff4ce18fbee82ef39838b7c8623aed17dea60.zip
binutils-33eff4ce18fbee82ef39838b7c8623aed17dea60.tar.gz
binutils-33eff4ce18fbee82ef39838b7c8623aed17dea60.tar.bz2
ld: Replace "-z textonly" with "-z separate-code"
Although they aren't passed to linker, we should get it right. * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with "-z separate-code". * testsuite/ld-elf/pr22393-2b.rd: Likewise. * testsuite/ld-x86-64/pr22393-3a.rd: Likewise. * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/testsuite/ld-elf/pr22393-2a.rd2
-rw-r--r--ld/testsuite/ld-elf/pr22393-2b.rd2
-rw-r--r--ld/testsuite/ld-x86-64/pr22393-3a.rd2
-rw-r--r--ld/testsuite/ld-x86-64/pr22393-3b.rd2
5 files changed, 12 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6002fbf..19e34da 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,13 @@
2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
+ * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
+ "-z separate-code".
+ * testsuite/ld-elf/pr22393-2b.rd: Likewise.
+ * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
+ * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
+
+2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
+
PR ld/22393
* testsuite/ld-x86-64/pr22393-3a.c: New file.
* testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
diff --git a/ld/testsuite/ld-elf/pr22393-2a.rd b/ld/testsuite/ld-elf/pr22393-2a.rd
index b7ba110..0050f1b 100644
--- a/ld/testsuite/ld-elf/pr22393-2a.rd
+++ b/ld/testsuite/ld-elf/pr22393-2a.rd
@@ -1,5 +1,5 @@
#source: pr22393-1.s
-#ld: -shared -z textonly
+#ld: -shared -z separate-code
#readelf: -l --wide
#target: *-*-linux-gnu *-*-gnu* *-*-nacl*
diff --git a/ld/testsuite/ld-elf/pr22393-2b.rd b/ld/testsuite/ld-elf/pr22393-2b.rd
index b7ba110..0050f1b 100644
--- a/ld/testsuite/ld-elf/pr22393-2b.rd
+++ b/ld/testsuite/ld-elf/pr22393-2b.rd
@@ -1,5 +1,5 @@
#source: pr22393-1.s
-#ld: -shared -z textonly
+#ld: -shared -z separate-code
#readelf: -l --wide
#target: *-*-linux-gnu *-*-gnu* *-*-nacl*
diff --git a/ld/testsuite/ld-x86-64/pr22393-3a.rd b/ld/testsuite/ld-x86-64/pr22393-3a.rd
index b7ba110..0050f1b 100644
--- a/ld/testsuite/ld-x86-64/pr22393-3a.rd
+++ b/ld/testsuite/ld-x86-64/pr22393-3a.rd
@@ -1,5 +1,5 @@
#source: pr22393-1.s
-#ld: -shared -z textonly
+#ld: -shared -z separate-code
#readelf: -l --wide
#target: *-*-linux-gnu *-*-gnu* *-*-nacl*
diff --git a/ld/testsuite/ld-x86-64/pr22393-3b.rd b/ld/testsuite/ld-x86-64/pr22393-3b.rd
index b7ba110..0050f1b 100644
--- a/ld/testsuite/ld-x86-64/pr22393-3b.rd
+++ b/ld/testsuite/ld-x86-64/pr22393-3b.rd
@@ -1,5 +1,5 @@
#source: pr22393-1.s
-#ld: -shared -z textonly
+#ld: -shared -z separate-code
#readelf: -l --wide
#target: *-*-linux-gnu *-*-gnu* *-*-nacl*