From 10dbfb3eb052e620e307acc774b07bc92e9bbc9b Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 22 Nov 2012 15:17:21 +0000 Subject: Issue an error for -static with fsanitize=address PR sanitizer/55379 * gcc.c (LINK_COMMAND_SPEC): Issue an error for -static with -fsanitize=address. From-SVN: r193728 --- gcc/gcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gcc.c') diff --git a/gcc/gcc.c b/gcc/gcc.c index 764ee1b..ce5ab61 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -703,7 +703,7 @@ proper position among the other output files. */ %{fgnu-tm:%:include(libitm.spec)%(link_itm)}\ %(mflib) " STACK_SPLIT_SPEC "\ %{fprofile-arcs|fprofile-generate*|coverage:-lgcov}\ - %{fsanitize=address:" LIBASAN_SPEC "}\ + %{fsanitize=address:" LIBASAN_SPEC "%{static:%ecannot specify -static with -fsanitize=address}}\ %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}\ %{!nostdlib:%{!nostartfiles:%E}} %{T*} }}}}}}" #endif -- cgit v1.1