Guest User

Make Errors

a guest
Jan 29th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. 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
  2. main.c: In function ‘getKeyStroke’:
  3. main.c:15:50: warning: passing argument 1 of ‘SystemTable->ConIn->ReadKeyStroke’ from incompatible pointer type [-Wincompatible-pointer-types]
  4. return SystemTable->ConIn->ReadKeyStroke(SystemTable, &Key);
  5. ^~~~~~~~~~~
  6. main.c:15:50: note: expected ‘struct _SIMPLE_INPUT_INTERFACE *’ but argument is of type ‘EFI_SYSTEM_TABLE * {aka struct _EFI_SYSTEM_TABLE *}’
  7. main.c:15:63: warning: passing argument 2 of ‘SystemTable->ConIn->ReadKeyStroke’ from incompatible pointer type [-Wincompatible-pointer-types]
  8. return SystemTable->ConIn->ReadKeyStroke(SystemTable, &Key);
  9. ^
  10. main.c:15:63: note: expected ‘EFI_INPUT_KEY * {aka struct <anonymous> *}’ but argument is of type ‘EFI_INPUT_KEY ** {aka struct <anonymous> **}’
  11. 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
  12. objcopy -j .text -j .sdata -j .data -j .dynamic \
  13. -j .dynsym -j .rel -j .rela -j .reloc \
  14. --target=efi-app-x86_64 hello.so hello.efi
Advertisement
Add Comment
Please, Sign In to add comment