forked from jyao1/rust-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build vsock payload as ELF OBJ format and linux GCC calling convention …
…jyao1#26 By specifying build target to rust-vsock-payload/target.json, payload can be built as ELF format and linux GCC x86-64 calling convention. 'Cargo elfbuild..' can be use directly, the usage has been document to rust-vsock-payload/readme.md Signed-off-by: Jiaqi Gao <[email protected]>
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
[alias] | ||
mbuild = "build --target x86_64-unknown-uefi -Zbuild-std=core,alloc -Zbuild-std-features=compiler-builtins-mem" | ||
elfbuild = "xbuild --target rust-vsock-payload/target.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"llvm-target": "x86_64-unknown-none", | ||
"data-layout": "e-m:e-i64:64-f80:128-n8:16:32:64-S128", | ||
"arch": "x86_64", | ||
"target-endian": "little", | ||
"target-pointer-width": "64", | ||
"target-c-int-width": "32", | ||
"os": "none", | ||
"executables": true, | ||
"linker": "rust-lld", | ||
"linker-flavor": "ld.lld", | ||
"panic-strategy": "abort", | ||
"disable-redzone": true, | ||
"features": "-mmx,-sse,+soft-float", | ||
"position-independent-executables": true | ||
} |