Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/gcc/config Put the sanitizer librarie...
details: https://anonhg.NetBSD.org/src/rev/f7e4422627f2
branches: trunk
changeset: 345614:f7e4422627f2
user: christos <christos%NetBSD.org@localhost>
date: Wed Jun 01 22:27:49 2016 +0000
description:
Put the sanitizer libraries before everything else, since it needs to be
the first shared object.
diffstat:
external/gpl3/gcc/dist/gcc/config/netbsd-elf.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r b496dff46db2 -r f7e4422627f2 external/gpl3/gcc/dist/gcc/config/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h Wed Jun 01 21:24:55 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h Wed Jun 01 22:27:49 2016 +0000
@@ -85,7 +85,10 @@
%{!static: \
%{rdynamic:-export-dynamic} \
-dynamic-linker /usr/libexec/ld.elf_so} \
- %{static:-static}}"
+ %{static:-static}} \
+ %{!nostdlib:%{!nodefaultlibs:\
+ %{%:sanitize(address): -lasan } \
+ %{%:sanitize(undefined): -lubsan}}}"
/* Use --as-needed -lgcc_s for eh support. */
#ifdef HAVE_LD_AS_NEEDED
Home |
Main Index |
Thread Index |
Old Index