Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2024 10:33:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 276104] [exp-run] Against llvm-18-update branch on GitHub
Message-ID:  <bug-276104-7788-p2bBGWGH10@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-276104-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-276104-7788@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=3D276104

--- Comment #79 from commit-hook@FreeBSD.org ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D18590ac4f0355175003baefa711fcb47f=
041f24e

commit 18590ac4f0355175003baefa711fcb47f041f24e
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-04-14 17:38:42 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-04-20 10:03:26 +0000

    sanitizers: mark __elf_aux_vector as weak, to allow linking without lib=
sys

    After libsys was introduced, linking sanitized programs started failing
    with:

      # c++ -fsanitize=3Daddress main.cc
      ld: error: undefined symbol: __elf_aux_vector
      >>> referenced by sanitizer_linux_libcdep.cpp:950
(/usr/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_l=
inux_libcdep.cpp:950)
      >>>               sanitizer_linux_libcdep.o:(__sanitizer::ReExec()) in
archive /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a
      c++: error: linker command failed with exit code 1 (use -v to see
invocation)

    Mark __elf_aux_vector as weak in the internal sanitizer declaration, so
    the linker will accept it at link time. The dynamic linker will then
    take care of the symbol at run time.

    Suggestion by:  brooks
    PR:             276104, 277393
    MFC after:      1 month

    (cherry picked from commit 8b181c2fbaa8c6b32e5510ef6e3a6d364ff4710e)

 .../compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp        | =
2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--=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-276104-7788-p2bBGWGH10>