GNU bug report logs -
#49595
-fsanitize=* not passed to linker / needs release
Previous Next
Reported by: Jan Engelhardt <jengelh <at> inai.de>
Date: Fri, 16 Jul 2021 10:39:02 UTC
Severity: normal
Done: Mike Frysinger <vapier <at> gentoo.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On libtool 2.4.6 and earlier:
$ ./libtool --tag=CXX --mode=link g++ -rpath /lib64 -fsanitize=address -o libx.la x.lo
libtool: link: rm -fr .libs/libx.a .libs/libx.la
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/11/crtbeginS.o .libs/x.o -L/usr/lib64/gcc/x86_64-suse-linux/11 -L/usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/11/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib64/gcc/x86_64-suse-linux/11/crtendS.o /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crtn.o -Wl,-soname -Wl,libx.so.0 -o .libs/libx.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libx.so.0" && ln -s "libx.so.0.0.0" "libx.so.0")
libtool: link: (cd ".libs" && rm -f "libx.so" && ln -s "libx.so.0.0.0" "libx.so")
libtool: link: ( cd ".libs" && rm -f "libx.la" && ln -s "../libx.la" "libx.la" )
It is imperative that -fsanitize=* be passed to the compiler-linker
driver.
Apparently this was already fixed with
a5c6466528c060cc4660ad0319c00740db0e42ba (2015!)
But distros are still don't have it, because they often choose to only
update to releases and seldomly commits inbetween. Can you please make a
new release?
This bug report was last modified 1 year and 132 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.