1 many tests rely on order of symbols and the gnu hash style/relro options
2 change that. so to avoid having to constantly thrash in the test files,
3 use the normal options that everyone tests against.
5 --- binutils/ld/testsuite/lib/ld-lib.exp
6 +++ binutils/ld/testsuite/lib/ld-lib.exp
10 remote_file host delete $target
11 - return [run_host_cmd_yesno "$ld" "$HOSTING_EMU -o $target -r $objects"]
12 + return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv -z norelro -o $target -r $objects"]
15 # Check to see if ld is being invoked with a non-endian output format
18 remote_file host delete $target
20 - return [run_host_cmd_yesno "$ld" "$HOSTING_EMU $flags -o $target $objs $libs"]
21 + return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv -z norelro $flags -o $target $objs $libs"]
24 # Link a program using ld, without including any libraries.
27 set ldexe [string replace $ldexe 0 [string last "/" $ldexe] ""]
28 if {[string match "*gcc*" $ldexe] || [string match "*++*" $ldexe]} then {
29 - set ldflags "$gcc_ld_flag $ldflags"
30 + set ldflags "$gcc_ld_flag -Wl,--hash-style=sysv -Wl,-z,norelro $ldflags"
32 + set ldflags "--hash-style=sysv -z norelro $ldflags"
35 remote_file host delete $target