Hello guys,
I`m trying to compile a simple UEFI Hello World using EDKII and a GCC cross compiler as described in this post:
The code works fine when I`m compiling for X64 platforms but I'm getting this Dwarf error when I'm compiling for AARCH64:
#include <Uefi.h> #include <Library/UefiLib.h> EFI_STATUS EFIAPI HelloWorld_EntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE* SystemTable ) { Print(L"Hello World\n"); // SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Hello World"); return EFI_SUCCESS; }
The OutputString function works fine but all functions that somehow needs memcpy doesn't work.
Error:
/src/toolchain/gcc-arm-8.2-2019.01-x86_64-aarch64-elf/bin/../lib/gcc/aarch64-elf/8.2.1/../../../../aarch64-elf/bin/ld: Dwarf Error: Could not find abbrev number 38. /tmp/cczBhuU4.ltrans0.ltrans.o: In function `UnicodeVSPrint.constprop.6': <artificial>:(.text.UnicodeVSPrint.constprop.6+0x20): undefined reference to `memcpy' collect2: error: ld returned 1 exit status
Does anyone know how could I fix it? I don't know if I'm missing something
Thank very much!!