HomeFreeBSD

lang/gcc13: Fix Address sanitizer

Description

lang/gcc13: Fix Address sanitizer

Software compiled with -fsanitize=address fails to run with the error
message "ASan runtime does not come first in initial library list; you
should either link runtime to your application or manually preload it
with LD_PRELOAD".

This commit fixes the issue by ignoring the [vdso] loaded shared library
instead of linux-vdso.so.

To successfully run the software compiled with -fsanitize=address it is
still necessary to disable ASLR.

PR: 267751
Reported by: yuri

Co-authored-by: Andreas Tobler <andreast@gcc.gnu.org>

Details

Provenance
salvadoreAuthored on Jan 12 2024, 2:34 PM
Parents
R11:99c1ed39b70e: lang/gcc14-devel: Fix Address sanitizer
Branches
Unknown
Tags
Unknown