[RFC] asan ld builds without detect_leaks=0
Alan Modra
amodra@gmail.com
Mon Jan 20 22:38:00 GMT 2025
On Mon, Jan 20, 2025 at 09:47:46PM +0000, Sam James wrote:
> 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.
OK, thanks for looking at the patch. I'll commit it and if I need to
append to existing ASAN_OPTIONS then that can be done later.
--
Alan Modra
More information about the Binutils
mailing list