diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2012-11-22 15:17:21 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2012-11-22 07:17:21 -0800 |
commit | 10dbfb3eb052e620e307acc774b07bc92e9bbc9b (patch) | |
tree | bbdf356a9933a85b85272db3612ea9d33d0302a0 /gcc/gcc.c | |
parent | 81ede53ad7a6db16eee9e9d8896949e928c04d5c (diff) | |
download | gcc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |