wok-next diff gcc/stuff/patches/gcc-as-needed-gold.patch @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gcc/stuff/patches/gcc-as-needed-gold.patch Sat Nov 21 14:32:44 2020 +0100 1.3 @@ -0,0 +1,58 @@ 1.4 +# DP: Use --push-state/--pop-state for gold as well when linking libtsan. 1.5 + 1.6 +Index: b/gcc/gcc.c 1.7 +=================================================================== 1.8 +--- a/gcc/gcc.c 1.9 ++++ b/gcc/gcc.c 1.10 +@@ -693,10 +693,10 @@ proper position among the other output f 1.11 + #define LIBASAN_SPEC STATIC_LIBASAN_LIBS 1.12 + #elif defined(HAVE_LD_STATIC_DYNAMIC) 1.13 + #define LIBASAN_SPEC "%{static-libasan:" LD_STATIC_OPTION "}" \ 1.14 +- " %{!static-libasan:%{!fuse-ld=gold:--push-state }--no-as-needed}" \ 1.15 ++ " %{!static-libasan:--push-state --no-as-needed}" \ 1.16 + " -lasan " \ 1.17 + " %{static-libasan:" LD_DYNAMIC_OPTION "}" \ 1.18 +- " %{!static-libasan:%{fuse-ld=gold:--as-needed;:--pop-state}}" \ 1.19 ++ " %{!static-libasan:--pop-state}" \ 1.20 + STATIC_LIBASAN_LIBS 1.21 + #else 1.22 + #define LIBASAN_SPEC "-lasan" STATIC_LIBASAN_LIBS 1.23 +@@ -714,10 +714,10 @@ proper position among the other output f 1.24 + #define LIBTSAN_SPEC STATIC_LIBTSAN_LIBS 1.25 + #elif defined(HAVE_LD_STATIC_DYNAMIC) 1.26 + #define LIBTSAN_SPEC "%{static-libtsan:" LD_STATIC_OPTION "}" \ 1.27 +- " %{!static-libtsan:%{!fuse-ld=gold:--push-state }--no-as-needed}" \ 1.28 ++ " %{!static-libtsan:--push-state --no-as-needed}" \ 1.29 + " -ltsan " \ 1.30 + " %{static-libtsan:" LD_DYNAMIC_OPTION "}" \ 1.31 +- " %{!static-libtsan:%{fuse-ld=gold:--as-needed;:--pop-state}}" \ 1.32 ++ " %{!static-libtsan:--pop-state}" \ 1.33 + STATIC_LIBTSAN_LIBS 1.34 + #else 1.35 + #define LIBTSAN_SPEC "-ltsan" STATIC_LIBTSAN_LIBS 1.36 +@@ -735,10 +735,10 @@ proper position among the other output f 1.37 + #define LIBLSAN_SPEC STATIC_LIBLSAN_LIBS 1.38 + #elif defined(HAVE_LD_STATIC_DYNAMIC) 1.39 + #define LIBLSAN_SPEC "%{static-liblsan:" LD_STATIC_OPTION "}" \ 1.40 +- " %{!static-liblsan:%{!fuse-ld=gold:--push-state }--no-as-needed}" \ 1.41 ++ " %{!static-liblsan:--push-state --no-as-needed}" \ 1.42 + " -llsan " \ 1.43 + " %{static-liblsan:" LD_DYNAMIC_OPTION "}" \ 1.44 +- " %{!static-liblsan:%{fuse-ld=gold:--as-needed;:--pop-state}}" \ 1.45 ++ " %{!static-liblsan:--pop-state}" \ 1.46 + STATIC_LIBLSAN_LIBS 1.47 + #else 1.48 + #define LIBLSAN_SPEC "-llsan" STATIC_LIBLSAN_LIBS 1.49 +@@ -754,10 +754,10 @@ proper position among the other output f 1.50 + " %{static-libubsan|static:%:include(libsanitizer.spec)%(link_libubsan)}" 1.51 + #ifdef HAVE_LD_STATIC_DYNAMIC 1.52 + #define LIBUBSAN_SPEC "%{static-libubsan:" LD_STATIC_OPTION "}" \ 1.53 +- " %{!static-libubsan:%{!fuse-ld=gold:--push-state }--no-as-needed}" \ 1.54 ++ " %{!static-libubsan:--push-state --no-as-needed}" \ 1.55 + " -lubsan " \ 1.56 + " %{static-libubsan:" LD_DYNAMIC_OPTION "}" \ 1.57 +- " %{!static-libubsan:%{fuse-ld=gold:--as-needed;:--pop-state}}" \ 1.58 ++ " %{!static-libubsan:--pop-state}" \ 1.59 + STATIC_LIBUBSAN_LIBS 1.60 + #else 1.61 + #define LIBUBSAN_SPEC "-lubsan" STATIC_LIBUBSAN_LIBS