HomeFreeBSD

lang/gcc13-devel: Fix Address sanitizer

Description

lang/gcc13-devel: 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 Nov 23 2022, 11:51 AM
Parents
R11:f942dcfd4f8e: textproc/reflex: Fix build with MAN location
Branches
Unknown
Tags
Unknown