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
main.c
#include <stdio.h> #include <stdint.h> int main() { uint8_t data[4]; printf("%c", data[5]); return 0; }
Output:
main.o> gcc -Og -c -o main.o -std=c23 -gdwarf-4 -fno-omit-frame-pointer -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=undefined main.c main> gcc -Og -o main -std=c23 -gdwarf-4 -fPIC -fno-omit-frame-pointer -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=undefined -fuse-ld=mold main.o main: error while loading shared libraries: libasan.so.8: cannot open shared object file: No such file or directory
Without -fuse-ld=mold, this links correctly.
-fuse-ld=mold
The text was updated successfully, but these errors were encountered:
No branches or pull requests
main.c
Output:
Without
-fuse-ld=mold
, this links correctly.The text was updated successfully, but these errors were encountered: