Module Name:    src
Committed By:   christos
Date:           Wed Jun  1 22:27:49 UTC 2016

Modified Files:
        src/external/gpl3/gcc/dist/gcc/config: netbsd-elf.h

Log Message:
Put the sanitizer libraries before everything else, since it needs to be
the first shared object.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h:1.8 src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h:1.9
--- src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h:1.8	Wed Mar 16 01:33:16 2016
+++ src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h	Wed Jun  1 18:27:49 2016
@@ -85,7 +85,10 @@ along with GCC; see the file COPYING3.  
      %{!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

Reply via email to