Fix failure in x86_64 linker tests when compiling with a PIE enabled compiler.

PR 21090
	* testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
	disable PIE for the non-pie version of the test.
This commit is contained in:
Nick Clifton 2017-04-07 11:48:08 +01:00
parent ac8f0f721b
commit ae3f8c2813
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-04-07 Nick Clifton <nickc@redhat.com>
PR 21090
* testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
disable PIE for the non-pie version of the test.
2017-04-07 Alan Modra <amodra@gmail.com>
* testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.

View File

@ -1277,7 +1277,7 @@ if { [isnative] && [which $CC] != 0 } {
]
}
undefined_weak "" ""
undefined_weak "-fno-pie" "-no-pie"
undefined_weak "-fPIE" ""
undefined_weak "-fPIE" "-pie"
undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak"