[RFC] asan ld builds without detect_leaks=0

Sam James sam@gentoo.org
Mon Jan 20 21:47:46 GMT 2025


Alan Modra <amodra@gmail.com> writes:

> On Mon, Jan 20, 2025 at 05:39:47PM +0000, Sam James wrote:
>> Alan Modra <amodra@gmail.com> writes:
>> 
>> > I found that building binutils with -fsanitize=address,undefined
>> > results in much of the testsuite not being run.  The problem is that
>> > running gcc results in linker plugin memory leaks which of course are
>> > errors, so the testsuite sees this as lack of compiler support.
>> >
>> > Does this seem a reasonable hack?
>> 
>> Sorry, followup: doesn't this clobber ASAN_OPTIONS, rather than
>> appending to it (options are delimited with ":")?
>
> Yes.  It that going to be a problem?

It's not ideal but I can't see a real problem with it here, unlike if it
were for e.g. UBSAN_OPTIONS. So nevermind.


More information about the Binutils mailing list