https://sourceware.org/bugzilla/show_bug.cgi?id=26206
--- Comment #20 from Tamar Christina <tnfchris at sourceware dot org> --- (In reply to pjo...@redhat.com from comment #19) > Can you share your tree so we can replicate this locally? Aside from that, > "objdump -f" or even "objdump -x" would be helpful. > Yes, I'll do some cleanup and push it to a branch on binutils. > My initial suspicion is that it's not seeing your binary as relocatable, and > EFI_NOT_FOUND is coming from edk2's > GetPeCoffImageFixLoadingAssignedAddress(), indicating that the fixed load > address is not available. On other arches we solve this with a dummy .reloc > section in crt0-efi-ARCH.S (such as this > https://github.com/rhboot/gnu-efi/blob/shim-15.5/gnuefi/crt0-efi-x86_64. > S#L65 ), and of course you'll need the .reloc section in the linker script > (such as > https://github.com/rhboot/gnu-efi/blob/shim-15.5/gnuefi/elf_x86_64_efi. > lds#L28 ). Ahhhhh that would explain it. I didn't add that part in when I removed the PE creation code from crt0-efi-aarch64.S. -- You are receiving this mail because: You are on the CC list for the bug.