Skip to content

Commit 89a1197

Browse files
committed
[asan] Fix-forward by adding SANITIZER_LINUX guard to 131975
Fix Solaris build breakage reported in #131975 (comment)
1 parent fa52a54 commit 89a1197

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler-rt/lib/asan/asan_linux.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ void FlushUnneededASanShadowMemory(uptr p, uptr size) {
109109
}
110110

111111
void ReExecWithoutASLR() {
112+
# if SANITIZER_LINUX
112113
// ASLR personality check.
113114
// Caution: 'personality' is sometimes forbidden by sandboxes, so only call
114115
// this function as a last resort (when the memory mapping is incompatible
@@ -137,6 +138,7 @@ void ReExecWithoutASLR() {
137138

138139
ReExec();
139140
}
141+
# endif
140142
}
141143

142144
# if SANITIZER_ANDROID

0 commit comments

Comments
 (0)