Re: [PATCH] Fix driver -fsanitize= handling with -static (PR sanitizer/84285)

2018-02-08 Thread Richard Biener
On February 9, 2018 7:27:57 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >When linking with -static-lib{a,t,l,ub}san -fsanitize=whatever, we link >-l{a,t,l,ub}san statically into the binary and add the set of libraries >needed by the lib{a,t,l,ub}san.a afterwards (-lpthread, -ldl

[PATCH] Fix driver -fsanitize= handling with -static (PR sanitizer/84285)

2018-02-08 Thread Jakub Jelinek
Hi! When linking with -static-lib{a,t,l,ub}san -fsanitize=whatever, we link -l{a,t,l,ub}san statically into the binary and add the set of libraries needed by the lib{a,t,l,ub}san.a afterwards (-lpthread, -ldl etc.). When doing -static -fsanitize=whatever link, we link the sanitizer library