Commit 6295bec
committed
[hyperlight_guest_bin] Disable red zones when compiling C
Because we don't presently switch stacks on interrupt entry, we cannot
support a red zone in the ABI. rustc's x86_64-unknown-none target
already does not use a redzone, but clang's x86_64-unknown-none-linux
target, which we use for compiling C code, does use a red zone by
default. This commit modifies the clang options that we use to remove
uses of a red zone from generated code.
Signed-off-by: Lucy Menon <[email protected]>1 parent 63ba9a3 commit 6295bec
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| |||
245 | 249 | | |
246 | 250 | | |
247 | 251 | | |
| 252 | + | |
248 | 253 | | |
249 | 254 | | |
250 | 255 | | |
| |||
0 commit comments