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.
This commit is contained in:
H.J. Lu
2021-06-17 10:32:27 -07:00
parent b6b4298372
commit e013d20dc7
2 changed files with 8 additions and 1 deletions

View 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

View File

@ -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" \