]> git.proxmox.com Git - mirror_edk2.git/commit
PrmPkg: Build Prm Samples with GCC for AARCH64
authorJose Marinho <jose.marinho@arm.com>
Tue, 5 Apr 2022 17:57:23 +0000 (18:57 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 8 Aug 2022 22:43:51 +0000 (22:43 +0000)
commit21200d9fe6d5b8078b93dbddfbcdf536308b67e4
treedeb097f7e2fdd2489b3ca13a252e9038b9e1f5bb
parent9f197e44b102a8d7d457d2cb4f54967681c858a9
PrmPkg: Build Prm Samples with GCC for AARCH64

- Add the --prm flag to the GENFW_FLAGS
- Add the --no-gc-section to the linker flags so that apparently
unreferenced symbols are not prematurely removed from the .dll which
is used to generate the Prm module .efi.
- Force the linker to maintain the PrmModuleExportDescriptor symbol.
- Force the linker to maintain the PRM handler funtion's symbol.

Signed-off-by: Jose Marinho <jose.marinho@arm.com>
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
PrmPkg/Samples/PrmSampleAcpiParameterBufferModule/PrmSampleAcpiParameterBufferModule.inf
PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf