Skip to content

Commit 3680b58

Browse files
committed
fix: clarify usage of no-red-zone flag
Signed-off-by: Tomasz Andrzejak <andreiltd@gmail.com>
1 parent 94df68a commit 3680b58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hyperlight_guest_bin/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ fn cc_build(picolibc_dir: &PathBuf, target: &str) -> Result<cc::Build> {
222222
.flag("-fno-stack-protector")
223223
.flag("-fstack-clash-protection")
224224
.flag("-mstack-probe-size=4096")
225-
// We don't use a different stack for all interrupts, so there
226-
// can be no red zone
225+
// Hyperlight's stack management was not designed with a redzone in mind,
226+
// so we leave it disabled for now
227227
.flag("-mno-red-zone")
228228
// This is a terrible hack, because
229229
// - we need stack clash protection, because we have put the

0 commit comments

Comments
 (0)