Skip to content

[lsan][Fuchsia] Define EarlySanitizerInit for standalone lsan #138946

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

Merged
merged 1 commit into from
May 7, 2025

Conversation

PiJoules
Copy link
Contributor

@PiJoules PiJoules commented May 7, 2025

I forgot to add this definition in #131886.

@llvmbot
Copy link
Member

llvmbot commented May 7, 2025

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: None (PiJoules)

Changes

I forgot to add this definition in #131886.


Full diff: https://github.com/llvm/llvm-project/pull/138946.diff

1 Files Affected:

  • (modified) compiler-rt/lib/lsan/lsan_fuchsia.cpp (+5)
diff --git a/compiler-rt/lib/lsan/lsan_fuchsia.cpp b/compiler-rt/lib/lsan/lsan_fuchsia.cpp
index ba59bc9b71e33..bb5de89b56729 100644
--- a/compiler-rt/lib/lsan/lsan_fuchsia.cpp
+++ b/compiler-rt/lib/lsan/lsan_fuchsia.cpp
@@ -21,6 +21,11 @@
 
 using namespace __lsan;
 
+namespace __sanitizer {
+// LSan doesn't need to do anything else special in the startup hook.
+void EarlySanitizerInit() {}
+}  // namespace __sanitizer
+
 namespace __lsan {
 
 void LsanOnDeadlySignal(int signo, void *siginfo, void *context) {}

@PiJoules PiJoules merged commit 1d073fd into llvm:main May 7, 2025
11 of 13 checks passed
@PiJoules PiJoules deleted the EarlySanitizerInit-lsan-standalone branch May 7, 2025 22:42
petrhosek pushed a commit to petrhosek/llvm-project that referenced this pull request May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants