UEFI App Bare Bones: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Artoria2e5 (talk | contribs) No edit summary |
Artoria2e5 (talk | contribs) |
||
Line 86: | Line 86: | ||
<source lang="bash"> |
<source lang="bash"> |
||
CFLAGS='--target x86_64-unknown-windows |
CFLAGS='--target x86_64-unknown-windows |
||
-ffreestanding |
-ffreestanding |
||
-fshort-wchar |
-fshort-wchar |
||
-mno-red-zone |
-mno-red-zone |
||
-Ipath/to/gnu-efi/inc -Ipath/to/gnu-efi/inc/x86_64 -Ipath/to/gnu-efi/inc/protocol' |
-Ipath/to/gnu-efi/inc -Ipath/to/gnu-efi/inc/x86_64 -Ipath/to/gnu-efi/inc/protocol' |
||
LDFLAGS='--target x86_64-unknown-windows |
LDFLAGS='--target x86_64-unknown-windows |
||
-nostdlib |
-nostdlib |
||
-Wl,-entry:efi_main |
-Wl,-entry:efi_main |
||
-Wl,-subsystem:efi_application |
-Wl,-subsystem:efi_application |
||
-fuse-ld=lld-link' |
-fuse-ld=lld-link' |
||
clang $CFLAGS -c -o hello.o hello.c |
clang $CFLAGS -c -o hello.o hello.c |