/[gentoo]/src/patchsets/binutils/2.20.1/77_all_generate-gnu-hash.patch
Gentoo

Diff of /src/patchsets/binutils/2.20.1/77_all_generate-gnu-hash.patch

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

Revision 1.1 Revision 1.2
17-#ld: -shared -T hidden2.ld 17-#ld: -shared -T hidden2.ld
18+#ld: -shared -T hidden2.ld --hash-style=sysv 18+#ld: -shared -T hidden2.ld --hash-style=sysv
19 #readelf: -Ds 19 #readelf: -Ds
20 # It is also ok to remove this symbol, but we currently make it local. 20 # It is also ok to remove this symbol, but we currently make it local.
21 21
22
23many tests rely on order of symbols and the gnu hash style changes that.
24so to avoid having to constantly thrash in the test files, use the normal
25hash style that everyone tests against.
26
27--- binutils/ld/testsuite/lib/ld-lib.exp
28+++ binutils/ld/testsuite/lib/ld-lib.exp
29@@ -84,7 +84,7 @@
30 global HOSTING_EMU
31
32 remote_file host delete $target
33- return [run_host_cmd_yesno "$ld" "$HOSTING_EMU -o $target -r $objects"]
34+ return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv -o $target -r $objects"]
35 }
36
37 # Check to see if ld is being invoked with a non-endian output format
38@@ -158,7 +158,7 @@
39
40 remote_file host delete $target
41
42- return [run_host_cmd_yesno "$ld" "$HOSTING_EMU $flags -o $target $objs $libs"]
43+ return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv $flags -o $target $objs $libs"]
44 }
45
46 # Link a program using ld, without including any libraries.
47@@ -189,7 +189,7 @@
48
49 remote_file host delete $target
50
51- set exec_output [run_host_cmd "$ld" "$flags -o $target $objects"]
52+ set exec_output [run_host_cmd "$ld" "--hash-style=sysv $flags -o $target $objects"]
53 set exec_output [prune_warnings $exec_output]
54
55 # 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