]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg/ArmJunoPkg: use a rodata symbol for ReferenceAcpiTable
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 10 Aug 2015 07:54:55 +0000 (07:54 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Mon, 10 Aug 2015 07:54:55 +0000 (07:54 +0000)
commit9bdf791f7dd167b1a9ad6b3d877d96492cc834bf
treea85084958e4975a70f1943c025257ce6aad8ede1
parentbaeddf2b27a91b4d7293f0f3921554db3527e483
ArmPlatformPkg/ArmJunoPkg: use a rodata symbol for ReferenceAcpiTable

The ACPI .aslc files contain a ReferenceAcpiTable() function whose
sole purpose is to ensure that the table itself does not get optimized
away. However, when using clang, these dummy functions result in a 4 KB
section alignment requirement, which is silly since everything except
the .data section is discarded later anyway.

So instead, make ReferenceAcpiTable a CONST pointer to VOID*. This way,
we still have a .text section, which is mandatory for the PE/COFF
conversion, but no executable code with small model relocations that
impose additional alignment requirements.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18194 6f19259b-4bc3-4df7-8a09-765794883524
ArmPlatformPkg/ArmJunoPkg/AcpiTables/Facs.aslc
ArmPlatformPkg/ArmJunoPkg/AcpiTables/Fadt.aslc
ArmPlatformPkg/ArmJunoPkg/AcpiTables/Gtdt.aslc
ArmPlatformPkg/ArmJunoPkg/AcpiTables/Madt.aslc