/[gentoo]/src/patchsets/binutils/2.21.1/75_all_binutils-default-test-flags.patch
Gentoo

Diff of /src/patchsets/binutils/2.21.1/75_all_binutils-default-test-flags.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
20- return [run_host_cmd_yesno "$ld" "$HOSTING_EMU $flags -o $target $objs $libs"] 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"] 21+ return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv -z norelro $flags -o $target $objs $libs"]
22 } 22 }
23 23
24 # Link a program using ld, without including any libraries. 24 # Link a program using ld, without including any libraries.
25@@ -189,7 +189,7 @@ 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 }
26 34
27 remote_file host delete $target 35 remote_file host delete $target
28
29- set exec_output [run_host_cmd "$ld" "$ldflags $flags -o $target $objects"]
30+ set exec_output [run_host_cmd "$ld" "--hash-style=sysv -z norelro $ldflags $flags -o $target $objects"]
31 set exec_output [prune_warnings $exec_output]
32
33 # We don't care if we get a warning about a non-existent start

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20