]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86-64: Use $NOPIE_LDFLAGS/$NOPIE_CFLAGS on protected-func-1
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 17 Jun 2021 17:32:27 +0000 (10:32 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 17 Jun 2021 17:36:15 +0000 (10:36 -0700)
PR ld/27973
* testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
$NOPIE_CFLAGS to protected-func-1 without PIE.

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

index 2b46bb92b6a3e05a9e44dcf6aa666274b0825d80..37a373b5db1e7bda382d76e2c35f5e428501465c 100644 (file)
@@ -1,3 +1,9 @@
+2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/27973
+       * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
+       $NOPIE_CFLAGS to protected-func-1 without PIE.
+
 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/27973
 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/27973
index 5dc9a1c218efbe2bf4935a660070a27e73f9b941..21a4824e3d19c8405bdb4f332a7564035f8c2d59 100644 (file)
@@ -1740,11 +1740,12 @@ if { [isnative] && [check_compiler_available] } {
        ] \
        [list \
            "Run protected-func-1 without PIE" \
        ] \
        [list \
            "Run protected-func-1 without PIE" \
-           "-Wl,--no-as-needed tmpdir/libprotected-func-1.so" \
+           "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libprotected-func-1.so" \
            "-Wa,-mx86-used-note=yes" \
            { protected-func-1b.c } \
            "protected-func-1a" \
            "pass.out" \
            "-Wa,-mx86-used-note=yes" \
            { protected-func-1b.c } \
            "protected-func-1a" \
            "pass.out" \
+           "$NOPIE_CFLAGS" \
        ] \
        [list \
            "Run protected-func-1 with PIE" \
        ] \
        [list \
            "Run protected-func-1 with PIE" \