aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2012-11-22 15:17:21 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2012-11-22 07:17:21 -0800
commit10dbfb3eb052e620e307acc774b07bc92e9bbc9b (patch)
treebbdf356a9933a85b85272db3612ea9d33d0302a0 /gcc/gcc.c
parent81ede53ad7a6db16eee9e9d8896949e928c04d5c (diff)
downloadgcc-10dbfb3eb052e620e307acc774b07bc92e9bbc9b.zip
gcc-10dbfb3eb052e620e307acc774b07bc92e9bbc9b.tar.gz
gcc-10dbfb3eb052e620e307acc774b07bc92e9bbc9b.tar.bz2
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
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
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