+2020-07-09 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-gc/gc.exp: Don't set -mminimal-toc for powerpc64,
+ and remove powerpc64 xfail. Use -fno-PIE for ppc32.
+
2020-07-09 Alan Modra <amodra@gmail.com>
PR 18841
set cflags "-ffunction-sections -fdata-sections $NOSANTIZE_CFLAGS"
set objfile "tmpdir/gc.o"
-if [istarget powerpc64*-*-*] {
- # otherwise with -mcmodel=medium gcc we get XPASSes.
- set cflags "$cflags -mminimal-toc"
+if { [istarget powerpc*-*-*] && ![istarget powerpc64*-*-*] } {
+ # Avoid using .got2 for powerpc -m32
+ set cflags "$cflags $NOPIE_CFLAGS"
}
if { [istarget m681*-*-*] || [istarget m68hc1*-*-*] } {
fail $testname
return
}
- #ppc64_elf_gc_mark_hook needs to be taught how to look through
- #the .toc section to properly mark variable sections for gc.
- setup_xfail "powerpc64*-*-*"
if {[info exists nm_output(unused_func)] \
|| [info exists nm_output(unused_var)]} {
send_log "unused section still here\n"