bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/26206] Add pei-aarch64 support for native EFI support


From: tnfchris at sourceware dot org
Subject: [Bug binutils/26206] Add pei-aarch64 support for native EFI support
Date: Wed, 20 Oct 2021 15:26:46 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26206

--- Comment #20 from Tamar Christina <tnfchris at sourceware dot org> ---
(In reply to pjones@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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]