diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-06-17 10:32:27 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-06-17 10:36:15 -0700 |
commit | e013d20dc73b40d4b70c4a366c9adc619503e66b (patch) | |
tree | 787d179bb906258bef2323a2d0bb56443e3aad5e /ld/testsuite | |
parent | b6b42983720c2d88f680ef7679f41c3ff95daae1 (diff) | |
download | gdb-e013d20dc73b40d4b70c4a366c9adc619503e66b.zip gdb-e013d20dc73b40d4b70c4a366c9adc619503e66b.tar.gz gdb-e013d20dc73b40d4b70c4a366c9adc619503e66b.tar.bz2 |
x86-64: Use $NOPIE_LDFLAGS/$NOPIE_CFLAGS on protected-func-1
PR ld/27973
* testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
$NOPIE_CFLAGS to protected-func-1 without PIE.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 5dc9a1c..21a4824 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -1740,11 +1740,12 @@ if { [isnative] && [check_compiler_available] } { ] \ [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" \ + "$NOPIE_CFLAGS" \ ] \ [list \ "Run protected-func-1 with PIE" \ |