Skip to content
New issue

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

Windows shared library asan_dll_thunk usage. #111351

Open
VA-GS opened this issue Oct 7, 2024 · 0 comments
Open

Windows shared library asan_dll_thunk usage. #111351

VA-GS opened this issue Oct 7, 2024 · 0 comments
Labels

Comments

@VA-GS
Copy link

VA-GS commented Oct 7, 2024

Hello, why is asan_dll_thunk used for -shared in CrossWindows.cpp ? https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/sanitizers/asan-building.md from Microsoft suggests that this is the old way to do things.

Is there a way to -lclang_rt.asan_dynamic-x86_64 -lclang_rt.asan_dynamic_runtime_thunk-x86_64 on Windows when building a DLL right now ? When I try I see that it still links clang_rt.asan_dll_thunk-x86_64.lib in addition to those 2 and a simple example crashes after AddressSanitizer Init done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants