Alexander von Gluck IV
July 5, 2020 6:39 PM, "valerij zaporogeci" <email@example.com> wrote:
base is BC570000, abort PC is BC570D34. take you "fake" PE and look atThanks! We actually figured it out, just missing our .reloc sections.
virtual size of text section is LESS than the size of raw data...gnu-efi does it this way because of the *really* inconsistent support in
Things seem to be getting a bit better, but documentation is pretty poor
For anyone reading this, semi-recent versions of binutils now support Pe
EFI binaries as long as the Pe target formats are enabled.
objcopy --output-target=pei-x86-64 --subsystem efi-app ...
objcopy --output-target=pei-arm --subsystem efi-app ...
This stuff doesn't seem documented *anywhere*, and everyone is using the
"outdated" efi-app-x86_64 output target.
Maybe tianocore/edk2 should document some real world tool chain examples
generating efi bootloaders? ipxe has literally written their own elf2efi
conversion application due to the inconsistent support and poor documentation.
"fake" PE... it's no wonder it works this way.There are also no alternatives for aarch64. binutils bfd doesn't have any
code to support Pe aarch64.