aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-05-25 06:45:13 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-05-25 06:45:13 -0700
commit07e0bb0fb2a900d8eecc3a51e3b21349217a8992 (patch)
treeb624135fae7fcc1531df109db2129c147827ed09 /ld
parentaf2c48d8545cbc24aa6caf9b9f2a49ab6c0aaa7b (diff)
downloadgdb-07e0bb0fb2a900d8eecc3a51e3b21349217a8992.zip
gdb-07e0bb0fb2a900d8eecc3a51e3b21349217a8992.tar.gz
gdb-07e0bb0fb2a900d8eecc3a51e3b21349217a8992.tar.bz2
ld-x86-64: Pass -z notext to linker for tests with DT_TEXTREL
* testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp4
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 2c7120f..098bd81 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,9 @@
2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
+ * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
+
+2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
+
* testsuite/ld-elf/eh6.d: Pass -z notext to linker.
* testsuite/ld-elf/ehdr_start-shared.d: Likewise.
* testsuite/ld-elf/pr19539.d: Likewise.
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index 07b70a4..8bfb4f7 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -1446,7 +1446,7 @@ if { [isnative] && [check_compiler_available] } {
run_cc_link_tests [list \
[list \
"Build pr22001-1b" \
- "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
+ "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed,-z,notext tmpdir/pr22001-1.so" \
"$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
{ pr22001-1c.c } \
{{error_output "pr22001-1b.err"}} \
@@ -1454,7 +1454,7 @@ if { [isnative] && [check_compiler_available] } {
] \
[list \
"Build pr21997-1b" \
- "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
+ "$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/pr21997-1.so" \
"$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
{ pr21997-1c.c } \
{{error_output "pr21997-1b.err"}} \