We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$ gcc -shared -o libex.so example.c -fsanitize=undefined $ ldd libex.so linux-vdso.so.1 (0x000079ecce133000) libubsan.so.1 => /lib/x86_64-linux-gnu/libubsan.so.1 (0x000079eccda00000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000079eccd600000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x000079eccd200000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000079ecce0df000) /lib64/ld-linux-x86-64.so.2 (0x000079ecce135000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000079eccd913000) $ clang -shared -fsanitize=undefined -o libex.so example.c $ ldd libex.so linux-vdso.so.1 (0x000077ad748b4000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000077ad74600000) /lib64/ld-linux-x86-64.so.2 (0x000077ad748b6000)
As the result, when used with -Wl,--no-undefined this breaks on clang, but works properly with gcc.
-Wl,--no-undefined
The text was updated successfully, but these errors were encountered:
configure: dont use -Wl,--no-undefined with clang
6097c0c
That breaks with ubsan+solib. Filled the upstream bug: llvm/llvm-project#134504
@llvm/issue-subscribers-clang-driver
Author: Stas Sergeev (stsp)
$ clang -shared -fsanitize=undefined -o libex.so example.c $ ldd libex.so linux-vdso.so.1 (0x000077ad748b4000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000077ad74600000) /lib64/ld-linux-x86-64.so.2 (0x000077ad748b6000)
As the result, when used with `-Wl,--no-undefined` this breaks on clang, but works properly with gcc. </details>
Sorry, something went wrong.
No branches or pull requests
As the result, when used with
-Wl,--no-undefined
this breakson clang, but works properly with
gcc.
The text was updated successfully, but these errors were encountered: