diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-22 15:17:21 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-22 15:17:21 +0000 |
commit | c3b808fb9921aaac4727f01152bf636da95d7036 (patch) | |
tree | bbdf356a9933a85b85272db3612ea9d33d0302a0 /gcc/gcc.c | |
parent | 4326a074cb25bc92685b22c6e432a40f4610ef37 (diff) | |
download | gcc-c3b808fb9921aaac4727f01152bf636da95d7036.tar.gz |
Issue an error for -static with fsanitize=address
PR sanitizer/55379
* gcc.c (LINK_COMMAND_SPEC): Issue an error for -static with
-fsanitize=address.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193728 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index 764ee1bf36f..ce5ab6136f3 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 |