wok-next view gcc/stuff/patches/gcc-as-needed-gold.patch @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents
children
line source
1 # DP: Use --push-state/--pop-state for gold as well when linking libtsan.
3 Index: b/gcc/gcc.c
4 ===================================================================
5 --- a/gcc/gcc.c
6 +++ b/gcc/gcc.c
7 @@ -693,10 +693,10 @@ proper position among the other output f
8 #define LIBASAN_SPEC STATIC_LIBASAN_LIBS
9 #elif defined(HAVE_LD_STATIC_DYNAMIC)
10 #define LIBASAN_SPEC "%{static-libasan:" LD_STATIC_OPTION "}" \
11 - " %{!static-libasan:%{!fuse-ld=gold:--push-state }--no-as-needed}" \
12 + " %{!static-libasan:--push-state --no-as-needed}" \
13 " -lasan " \
14 " %{static-libasan:" LD_DYNAMIC_OPTION "}" \
15 - " %{!static-libasan:%{fuse-ld=gold:--as-needed;:--pop-state}}" \
16 + " %{!static-libasan:--pop-state}" \
17 STATIC_LIBASAN_LIBS
18 #else
19 #define LIBASAN_SPEC "-lasan" STATIC_LIBASAN_LIBS
20 @@ -714,10 +714,10 @@ proper position among the other output f
21 #define LIBTSAN_SPEC STATIC_LIBTSAN_LIBS
22 #elif defined(HAVE_LD_STATIC_DYNAMIC)
23 #define LIBTSAN_SPEC "%{static-libtsan:" LD_STATIC_OPTION "}" \
24 - " %{!static-libtsan:%{!fuse-ld=gold:--push-state }--no-as-needed}" \
25 + " %{!static-libtsan:--push-state --no-as-needed}" \
26 " -ltsan " \
27 " %{static-libtsan:" LD_DYNAMIC_OPTION "}" \
28 - " %{!static-libtsan:%{fuse-ld=gold:--as-needed;:--pop-state}}" \
29 + " %{!static-libtsan:--pop-state}" \
30 STATIC_LIBTSAN_LIBS
31 #else
32 #define LIBTSAN_SPEC "-ltsan" STATIC_LIBTSAN_LIBS
33 @@ -735,10 +735,10 @@ proper position among the other output f
34 #define LIBLSAN_SPEC STATIC_LIBLSAN_LIBS
35 #elif defined(HAVE_LD_STATIC_DYNAMIC)
36 #define LIBLSAN_SPEC "%{static-liblsan:" LD_STATIC_OPTION "}" \
37 - " %{!static-liblsan:%{!fuse-ld=gold:--push-state }--no-as-needed}" \
38 + " %{!static-liblsan:--push-state --no-as-needed}" \
39 " -llsan " \
40 " %{static-liblsan:" LD_DYNAMIC_OPTION "}" \
41 - " %{!static-liblsan:%{fuse-ld=gold:--as-needed;:--pop-state}}" \
42 + " %{!static-liblsan:--pop-state}" \
43 STATIC_LIBLSAN_LIBS
44 #else
45 #define LIBLSAN_SPEC "-llsan" STATIC_LIBLSAN_LIBS
46 @@ -754,10 +754,10 @@ proper position among the other output f
47 " %{static-libubsan|static:%:include(libsanitizer.spec)%(link_libubsan)}"
48 #ifdef HAVE_LD_STATIC_DYNAMIC
49 #define LIBUBSAN_SPEC "%{static-libubsan:" LD_STATIC_OPTION "}" \
50 - " %{!static-libubsan:%{!fuse-ld=gold:--push-state }--no-as-needed}" \
51 + " %{!static-libubsan:--push-state --no-as-needed}" \
52 " -lubsan " \
53 " %{static-libubsan:" LD_DYNAMIC_OPTION "}" \
54 - " %{!static-libubsan:%{fuse-ld=gold:--as-needed;:--pop-state}}" \
55 + " %{!static-libubsan:--pop-state}" \
56 STATIC_LIBUBSAN_LIBS
57 #else
58 #define LIBUBSAN_SPEC "-lubsan" STATIC_LIBUBSAN_LIBS