Pass $PLT_CFLAGS to ld_compile
Some linker shard library tests without PIC expect PLT. This patch passes $PLT_CFLAGS to ld_compile. * ld-shared/shared.exp: Pass $PLT_CFLAGS to ld_compile.
This commit is contained in:
parent
379d3f1ffc
commit
cda77e9efc
|
@ -1,3 +1,7 @@
|
|||
2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* ld-shared/shared.exp: Pass $PLT_CFLAGS to ld_compile.
|
||||
|
||||
2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* ld-scripts/crossref.exp (CC): Save and restore. Append
|
||||
|
|
|
@ -217,9 +217,10 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
|
|||
# although it will be less efficient because the dynamic linker
|
||||
# will need to do more relocation work. However, note that not
|
||||
# using -fpic will cause some of the tests to return different
|
||||
# results.
|
||||
if { ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/sh1.c $tmpdir/sh1np.o]
|
||||
|| ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/sh2.c $tmpdir/sh2np.o] } {
|
||||
# results. Make sure that PLT is used since PLT is expected.
|
||||
global PLT_CFLAGS
|
||||
if { ![ld_compile "$CC $PLT_CFLAGS $CFLAGS $SHCFLAG" $srcdir/$subdir/sh1.c $tmpdir/sh1np.o]
|
||||
|| ![ld_compile "$CC $PLT_CFLAGS $CFLAGS $SHCFLAG" $srcdir/$subdir/sh2.c $tmpdir/sh2np.o] } {
|
||||
unresolved "shared (non PIC)"
|
||||
} else { if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } {
|
||||
shared_test shnp "shared (nonPIC)" mainnp.o sh1np.o sh2np.o xcoff
|
||||
|
|
Loading…
Reference in New Issue