GNU bug report logs - #49595
-fsanitize=* not passed to linker / needs release

Previous Next

Package: libtool;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49595 in the body.
You can then email your comments to 49595 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#49595; Package libtool. (Fri, 16 Jul 2021 10:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Engelhardt <jengelh <at> inai.de>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Fri, 16 Jul 2021 10:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jan Engelhardt <jengelh <at> inai.de>
To: bug-libtool <at> gnu.org
Subject: -fsanitize=* not passed to linker / needs release
Date: Fri, 16 Jul 2021 12:38:09 +0200 (CEST)
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?




bug closed, send any further explanations to 49595 <at> debbugs.gnu.org and Jan Engelhardt <jengelh <at> inai.de> Request was from Mike Frysinger <vapier <at> gentoo.org> to control <at> debbugs.gnu.org. (Fri, 12 Jan 2024 07:19:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 09 Feb 2024 12:24:19 GMT) Full text and rfc822 format available.

This bug report was last modified 75 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.