Align stack on x86_64

This commit is contained in:
Jeremy Soller
2018-07-03 11:31:05 -06:00
parent 6a0928edfd
commit 7e6e1b164c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ $(BUILD)/debug/libc.a: $(SRC)
touch $@
$(BUILD)/debug/crt0.o: $(SRC)
CARGO_INCREMENTAL=0 cargo --verbose --verbose rustc --manifest-path src/crt0/Cargo.toml $(CARGOFLAGS) -- --emit obj=$@
CARGO_INCREMENTAL=0 cargo rustc --manifest-path src/crt0/Cargo.toml $(CARGOFLAGS) -- --emit obj=$@
touch $@
$(BUILD)/release/libc.a: $(SRC)
+1
View File
@@ -15,6 +15,7 @@ use platform::types::*;
pub unsafe extern "C" fn _start() {
#[cfg(target_arch = "x86_64")]
asm!("mov rdi, rsp
and rsp, 0xFFFFFFFFFFFFFFF0
call _start_rust"
:
: