From 0f895683da0613f27ac460a69745a15571d2a2a9 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Thu, 9 Jul 2015 10:43:27 +0000 Subject: [PATCH] MdePkg/AArch64: use GCC_ASM_EXPORT to export functions This ensures the .type directive is used to mark them as function symbols Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Ard Biesheuvel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17904 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseCpuLib/AArch64/CpuFlushTlb.S | 2 +- MdePkg/Library/BaseCpuLib/AArch64/CpuSleep.S | 2 +- MdePkg/Library/BaseLib/AArch64/CpuBreakpoint.S | 2 +- MdePkg/Library/BaseLib/AArch64/DisableInterrupts.S | 2 +- MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S | 2 +- MdePkg/Library/BaseLib/AArch64/GetInterruptsState.S | 2 +- MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S | 4 ++-- MdePkg/Library/BaseLib/AArch64/SwitchStack.S | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/MdePkg/Library/BaseCpuLib/AArch64/CpuFlushTlb.S b/MdePkg/Library/BaseCpuLib/AArch64/CpuFlushTlb.S index 8e12bdd357..ea01a5ddb8 100644 --- a/MdePkg/Library/BaseCpuLib/AArch64/CpuFlushTlb.S +++ b/MdePkg/Library/BaseCpuLib/AArch64/CpuFlushTlb.S @@ -17,7 +17,7 @@ .text .p2align 2 -ASM_GLOBAL ASM_PFX(CpuFlushTlb) +GCC_ASM_EXPORT(CpuFlushTlb) #/** # Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU. diff --git a/MdePkg/Library/BaseCpuLib/AArch64/CpuSleep.S b/MdePkg/Library/BaseCpuLib/AArch64/CpuSleep.S index 86c3e63717..316ac656e0 100644 --- a/MdePkg/Library/BaseCpuLib/AArch64/CpuSleep.S +++ b/MdePkg/Library/BaseCpuLib/AArch64/CpuSleep.S @@ -17,7 +17,7 @@ .text .align 3 -ASM_GLOBAL ASM_PFX(CpuSleep) +GCC_ASM_EXPORT(CpuSleep) #/** # Places the CPU in a sleep state until an interrupt is received. diff --git a/MdePkg/Library/BaseLib/AArch64/CpuBreakpoint.S b/MdePkg/Library/BaseLib/AArch64/CpuBreakpoint.S index fe8c571720..6323cffaa9 100644 --- a/MdePkg/Library/BaseLib/AArch64/CpuBreakpoint.S +++ b/MdePkg/Library/BaseLib/AArch64/CpuBreakpoint.S @@ -17,7 +17,7 @@ .text .p2align 2 -ASM_GLOBAL ASM_PFX(CpuBreakpoint) +GCC_ASM_EXPORT(CpuBreakpoint) #/** # Generates a breakpoint on the CPU. diff --git a/MdePkg/Library/BaseLib/AArch64/DisableInterrupts.S b/MdePkg/Library/BaseLib/AArch64/DisableInterrupts.S index b80a7b41d7..943cc44c70 100644 --- a/MdePkg/Library/BaseLib/AArch64/DisableInterrupts.S +++ b/MdePkg/Library/BaseLib/AArch64/DisableInterrupts.S @@ -17,7 +17,7 @@ .text .p2align 2 -ASM_GLOBAL ASM_PFX(DisableInterrupts) +GCC_ASM_EXPORT(DisableInterrupts) #/** # Disables CPU interrupts. diff --git a/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S b/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S index 289739cda6..a423102535 100644 --- a/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S +++ b/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S @@ -17,7 +17,7 @@ .text .p2align 2 -ASM_GLOBAL ASM_PFX(EnableInterrupts) +GCC_ASM_EXPORT(EnableInterrupts) #/** diff --git a/MdePkg/Library/BaseLib/AArch64/GetInterruptsState.S b/MdePkg/Library/BaseLib/AArch64/GetInterruptsState.S index 5a971f5612..037f59acef 100644 --- a/MdePkg/Library/BaseLib/AArch64/GetInterruptsState.S +++ b/MdePkg/Library/BaseLib/AArch64/GetInterruptsState.S @@ -17,7 +17,7 @@ .text .p2align 2 -ASM_GLOBAL ASM_PFX(GetInterruptState) +GCC_ASM_EXPORT(GetInterruptState) #/** # Retrieves the current CPU interrupt state. diff --git a/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S b/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S index dbc5adbcac..704996d918 100644 --- a/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S +++ b/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S @@ -13,8 +13,8 @@ .text .p2align 3 -ASM_GLOBAL ASM_PFX(SetJump) -ASM_GLOBAL ASM_PFX(InternalLongJump) +GCC_ASM_EXPORT(SetJump) +GCC_ASM_EXPORT(InternalLongJump) #define GPR_LAYOUT \ REG_PAIR (x19, x20, 0); \ diff --git a/MdePkg/Library/BaseLib/AArch64/SwitchStack.S b/MdePkg/Library/BaseLib/AArch64/SwitchStack.S index 207a569b1b..2bce9c998f 100644 --- a/MdePkg/Library/BaseLib/AArch64/SwitchStack.S +++ b/MdePkg/Library/BaseLib/AArch64/SwitchStack.S @@ -16,8 +16,8 @@ .text .align 5 -ASM_GLOBAL ASM_PFX(InternalSwitchStackAsm) -ASM_GLOBAL ASM_PFX(CpuPause) +GCC_ASM_EXPORT(InternalSwitchStackAsm) +GCC_ASM_EXPORT(CpuPause) /** // -- 2.39.2