Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2022 23:54:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 267751] lang/gcc*: Address sanitizer isn't properly enabled: ASan runtime does not come first in initial library list
Message-ID:  <bug-267751-29464-11San9J9PV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-267751-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-267751-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267751

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 o=
nes
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 sub=
mit
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/930a7c2ac67e1e8e511aa1d0a31a16c632=
060ebb
into my patch, but it did not work. If I recall correctly, I have got an er=
ror
2 from execve or execvpe. I have not insisted testing it because I was unsu=
re
that it was really useful for the GCC ports, but I can test it again if you
want.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267751-29464-11San9J9PV>