blob: fb3e57f13a9f71f6d3c4e9a94997ba1fdbcd9043 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# DP: Use --push-state/--pop-state for gold as well when linking libtsan.
--- a/src/gcc/gcc.c
+++ b/src/gcc/gcc.c
@@ -700,10 +700,10 @@
#define LIBTSAN_SPEC STATIC_LIBTSAN_LIBS
#elif defined(HAVE_LD_STATIC_DYNAMIC)
#define LIBTSAN_SPEC "%{static-libtsan:" LD_STATIC_OPTION "}" \
- " %{!static-libtsan:%{!fuse-ld=gold:--push-state }--no-as-needed}" \
+ " %{!static-libtsan:--push-state --no-as-needed}" \
" -ltsan " \
" %{static-libtsan:" LD_DYNAMIC_OPTION "}" \
- " %{!static-libtsan:%{fuse-ld=gold:--as-needed;:--pop-state}}" \
+ " %{!static-libtsan:--pop-state}" \
STATIC_LIBTSAN_LIBS
#else
#define LIBTSAN_SPEC "-ltsan" STATIC_LIBTSAN_LIBS
|