re PR sanitizer/55374 ([asan] -static-libasan -static-libstdc++ doesn't work)
PR sanitizer/55374 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard. From-SVN: r195749
This commit is contained in:
parent
cf35e2b1e6
commit
956d3b33b5
|
@ -1,3 +1,8 @@
|
||||||
|
2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
|
PR sanitizer/55374
|
||||||
|
* config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
|
||||||
|
|
||||||
2013-02-04 Alexander Potapenko <glider@google.com>
|
2013-02-04 Alexander Potapenko <glider@google.com>
|
||||||
Jack Howarth <howarth@bromo.med.uc.edu>
|
Jack Howarth <howarth@bromo.med.uc.edu>
|
||||||
Jakub Jelinek <jakub@redhat.com>
|
Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
|
@ -102,10 +102,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
it for -shared link, the executable should be compiled with -static-libasan
|
it for -shared link, the executable should be compiled with -static-libasan
|
||||||
in that case, and for executable link link with --{,no-}whole-archive around
|
in that case, and for executable link link with --{,no-}whole-archive around
|
||||||
it to force everything into the executable. */
|
it to force everything into the executable. */
|
||||||
|
#if defined(HAVE_LD_STATIC_DYNAMIC)
|
||||||
#undef LIBASAN_EARLY_SPEC
|
#undef LIBASAN_EARLY_SPEC
|
||||||
#define LIBASAN_EARLY_SPEC "%{static-libasan:%{!shared:" \
|
#define LIBASAN_EARLY_SPEC "%{static-libasan:%{!shared:" \
|
||||||
LD_STATIC_OPTION " --whole-archive -lasan --no-whole-archive " \
|
LD_STATIC_OPTION " --whole-archive -lasan --no-whole-archive " \
|
||||||
LD_DYNAMIC_OPTION "}}%{!static-libasan:-lasan}"
|
LD_DYNAMIC_OPTION "}}%{!static-libasan:-lasan}"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Additional libraries needed by -static-libasan. */
|
/* Additional libraries needed by -static-libasan. */
|
||||||
#undef STATIC_LIBASAN_LIBS
|
#undef STATIC_LIBASAN_LIBS
|
||||||
|
|
Loading…
Reference in New Issue