]> 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>
Mon, 29 May 2023 13:12:55 +0000 (09:12 -0400)
commit753f15c24fbac5f445477ea82d3b72b2a7a3d90d
tree96b47e80e981945b4b779deedc6dda6653c507f6
parent5b45cd83c44edb9386eed1155acd3c52f36bf12c
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

(cherry picked from commit 21d56b796634bda628b149c717461bf88c23677d)
stand/efi/loader/arch/arm64/ldscript.arm64
stand/efi/loader/arch/arm64/start.S