Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cc -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -fno-stack-protector -fpic -fshort-wchar -mno-red-zone -Wall -DEFI_FUNCTION_WRAPPER -c -o main.o main.c
- main.c: In function ‘getKeyStroke’:
- main.c:15:50: warning: passing argument 1 of ‘SystemTable->ConIn->ReadKeyStroke’ from incompatible pointer type [-Wincompatible-pointer-types]
- return SystemTable->ConIn->ReadKeyStroke(SystemTable, &Key);
- ^~~~~~~~~~~
- main.c:15:50: note: expected ‘struct _SIMPLE_INPUT_INTERFACE *’ but argument is of type ‘EFI_SYSTEM_TABLE * {aka struct _EFI_SYSTEM_TABLE *}’
- main.c:15:63: warning: passing argument 2 of ‘SystemTable->ConIn->ReadKeyStroke’ from incompatible pointer type [-Wincompatible-pointer-types]
- return SystemTable->ConIn->ReadKeyStroke(SystemTable, &Key);
- ^
- main.c:15:63: note: expected ‘EFI_INPUT_KEY * {aka struct <anonymous> *}’ but argument is of type ‘EFI_INPUT_KEY ** {aka struct <anonymous> **}’
- ld -nostdlib -znocombreloc -T /usr/lib/elf_x86_64_efi.lds -shared -Bsymbolic -L /usr/lib -L /usr/lib64 /usr/lib/crt0-efi-x86_64.o main.o -o hello.so -lefi -lgnuefi
- objcopy -j .text -j .sdata -j .data -j .dynamic \
- -j .dynsym -j .rel -j .rela -j .reloc \
- --target=efi-app-x86_64 hello.so hello.efi
Advertisement
Add Comment
Please, Sign In to add comment