[Bug 267751] lang/gcc*: Address sanitizer isn't properly enabled: ASan runtime does not come first in initial library list

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 23 Nov 2022 23:54:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267751

Lorenzo Salvadore <salvadore@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim@FreeBSD.org,
                   |                            |emaste@freebsd.org

--- Comment #8 from Lorenzo Salvadore <salvadore@freebsd.org> ---
Please note that the patch for gcc13-devel is slightly different than the ones
for gcc11-devel and gcc12-devel. The patch for gcc13-devel is the one that
should be sent to upstream, assuming everything is fine.

Also please note that the same bug might affect clang in the src repository
too: indeed the same file I am patching here is present in
contrib/llvm-project/compiler-rt/lib/asan/asan_linux.cpp.

dim@, emaste@: I see you have worked on sanitizers in the src repository.
Should I submit my patch there too? Or do you think it is better that I submit
it directly to LLVM and then FreeBSD will merge it when it imports a new
version of LLVM? Do you have any improvement to suggest on the patch itself?

By the way, I have tried adding
https://github.com/emaste/freebsd/commit/930a7c2ac67e1e8e511aa1d0a31a16c632060ebb
into my patch, but it did not work. If I recall correctly, I have got an error
2 from execve or execvpe. I have not insisted testing it because I was unsure
that it was really useful for the GCC ports, but I can test it again if you
want.

-- 
You are receiving this mail because:
You are on the CC list for the bug.