]> git.proxmox.com Git - mirror_edk2.git/commit
ArmVirtPkg: clean up assembly source files
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 10 Aug 2016 11:08:57 +0000 (13:08 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 11 Aug 2016 10:29:31 +0000 (12:29 +0200)
commitdfc2838892e4a69781b06353ef494ba3ddf16488
tree06bc42c6d781caba67a7122decbf87327d94e9a1
parent16a9fe2ca9cc845cdc31ed8ff8310594c4a34717
ArmVirtPkg: clean up assembly source files

This updates all assembly source files under ArmVirtPkg to mark
exported functions as ASM_FUNC(), which puts them in a separate
section, allowing the linker to prune code that is left unused.

At the same time, clean up the code to get rid of LoadConstantToReg()
instances involving symbol references, each of which emits an absolute
literal, and hence and entry in the PE/COFF .reloc table.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmVirtPkg/Library/ArmQemuRelocatablePlatformLib/AARCH64/RelocatableVirtHelper.S
ArmVirtPkg/Library/ArmQemuRelocatablePlatformLib/ARM/RelocatableVirtHelper.S
ArmVirtPkg/Library/ArmVirtPlatformLib/AARCH64/VirtHelper.S
ArmVirtPkg/Library/ArmVirtPlatformLib/ARM/VirtHelper.S
ArmVirtPkg/Library/ArmVirtPlatformLib/ARM/VirtHelper.asm
ArmVirtPkg/Library/ArmXenRelocatablePlatformLib/AARCH64/RelocatableVirtHelper.S
ArmVirtPkg/Library/ArmXenRelocatablePlatformLib/ARM/RelocatableVirtHelper.S
ArmVirtPkg/PrePi/AArch64/ModuleEntryPoint.S
ArmVirtPkg/PrePi/Arm/ModuleEntryPoint.S