ld-x86-64: Pass -z notext to linker for tests with DT_TEXTREL
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 25 May 2020 13:45:13 +0000 (06:45 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 25 May 2020 13:45:13 +0000 (06:45 -0700)
* testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.

ld/ChangeLog
ld/testsuite/ld-x86-64/x86-64.exp

index 2c7120f7dcd2ab403e58265f8fb5169ed7fc48bb..098bd81396f2160efedcc703a5fb2e4d50aa7d09 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 07b70a4b8abaa8c3615524709a30669757cfe16a..8bfb4f7ab881b2847ff784af8ecccdb8c6d98b8f 100644 (file)
@@ -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"}} \
This page took 0.0267 seconds and 4 git commands to generate.