]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader.efi: Fix some arm64 PE metadata
authorMark Johnston <markj@FreeBSD.org>
Tue, 18 Apr 2023 18:32:04 +0000 (14:32 -0400)
committerMark Johnston <markj@FreeBSD.org>
Tue, 18 Apr 2023 18:36:24 +0000 (14:36 -0400)
commit21d56b796634bda628b149c717461bf88c23677d
tree8da79dd301a005a846151a56d06eb674fb11cdb2
parent274c18c2bde61f718f4641e9c5698a2d5c0dbc20
loader.efi: Fix some arm64 PE metadata

- Mark the file as an executable in the COFF header.
- Provide separate .text and .data sections.
- Provide sane file and section alignment values.  These values are the
  defaults defined in the PE specification.
- Set appropriate characteristics for each of .text and .data.

This is required for the MS devkit to load our UEFI image.

Obtained from: OpenBSD via allanjude
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D37765
stand/efi/loader/arch/arm64/ldscript.arm64
stand/efi/loader/arch/arm64/start.S