]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - binutils/patches/binutils-default-test-flags.patch
grep: Update to 2.17.
[people/ms/ipfire-3.x.git] / binutils / patches / binutils-default-test-flags.patch
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.
4
5 --- binutils/ld/testsuite/lib/ld-lib.exp
6 +++ binutils/ld/testsuite/lib/ld-lib.exp
7 @@ -84,7 +84,7 @@
8 global HOSTING_EMU
9
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"]
13 }
14
15 # Check to see if ld is being invoked with a non-endian output format
16 @@ -158,7 +158,7 @@
17
18 remote_file host delete $target
19
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"]
22 }
23
24 # Link a program using ld, without including any libraries.
25 @@ -189,7 +189,9 @@
26 }
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"
31 + } else {
32 + set ldflags "--hash-style=sysv -z norelro $ldflags"
33 }
34
35 remote_file host delete $target