From 386cdfbecbbacb600ffc8e2ffa8c7af1b3855a61 Mon Sep 17 00:00:00 2001 From: Mark Rutland Date: Tue, 17 Nov 2015 13:58:19 +0000 Subject: [PATCH] ArmPkg: ensure DebugAgentVectorTable is 2K-aligned We force alignment to 2K after generating the DebugAgentVectorTable symbol, and hence DebugAgentVectorTable itself may not be 2K-aligned, and table entries may not be at the correct offset from the DebugAgentVectorTable base address. Fix this by forcing alignment before generating the DebugAgentVectorTable symbol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Mark Rutland Reviewed-by: Ard Biesheuvel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18865 6f19259b-4bc3-4df7-8a09-765794883524 --- .../DebugAgentSymbolsBaseLib/AArch64/DebugAgentException.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmPkg/Library/DebugAgentSymbolsBaseLib/AArch64/DebugAgentException.S b/ArmPkg/Library/DebugAgentSymbolsBaseLib/AArch64/DebugAgentException.S index 022e2796c5..3fc090b2c3 100644 --- a/ArmPkg/Library/DebugAgentSymbolsBaseLib/AArch64/DebugAgentException.S +++ b/ArmPkg/Library/DebugAgentSymbolsBaseLib/AArch64/DebugAgentException.S @@ -16,12 +16,12 @@ GCC_ASM_EXPORT(DebugAgentVectorTable) GCC_ASM_IMPORT(DefaultExceptionHandler) .text +.align 11 ASM_PFX(DebugAgentVectorTable): // // Current EL with SP0 : 0x0 - 0x180 // -.align 11 ASM_PFX(SynchronousExceptionSP0): b ASM_PFX(SynchronousExceptionSP0) -- 2.39.2