diff options
author | Brendan Jackman <brendan.jackman@arm.com> | 2014-05-08 14:55:52 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-05-08 14:55:52 +0000 |
commit | 919a3a026cdddcdd603d18e2c7dd5c72a340ee8b (patch) | |
tree | 137a11ba7eed230b866cb90d9064747fb28099fa /ArmPlatformPkg | |
parent | 45440744c45dabc709550023a4d3766f908e8f7c (diff) | |
download | edk2-919a3a026cdddcdd603d18e2c7dd5c72a340ee8b.zip edk2-919a3a026cdddcdd603d18e2c7dd5c72a340ee8b.tar.gz edk2-919a3a026cdddcdd603d18e2c7dd5c72a340ee8b.tar.bz2 |
ARM Packages: 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: Brendan Jackman <brendan.jackman@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15506 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg')
5 files changed, 13 insertions, 13 deletions
diff --git a/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/AArch64/RTSMFoundationBoot.S b/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/AArch64/RTSMFoundationBoot.S index 20554a6..a07ed97 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/AArch64/RTSMFoundationBoot.S +++ b/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/AArch64/RTSMFoundationBoot.S @@ -20,10 +20,10 @@ .text
.align 3
-ASM_GLOBAL ASM_PFX(ArmPlatformSecBootAction)
-ASM_GLOBAL ASM_PFX(ArmPlatformSecBootMemoryInit)
-ASM_GLOBAL ASM_PFX(ArmSecMpCoreSecondariesWrite)
-ASM_GLOBAL ASM_PFX(ArmSecMpCoreSecondariesRead)
+GCC_ASM_EXPORT(ArmPlatformSecBootAction)
+GCC_ASM_EXPORT(ArmPlatformSecBootMemoryInit)
+GCC_ASM_EXPORT(ArmSecMpCoreSecondariesWrite)
+GCC_ASM_EXPORT(ArmSecMpCoreSecondariesRead)
/**
Call at the beginning of the platform boot up
diff --git a/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S b/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S index 1fc39e6..cdc8d92 100644 --- a/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S +++ b/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S @@ -18,7 +18,7 @@ .text
.align 11
-ASM_GLOBAL ASM_PFX(PeiVectorTable)
+GCC_ASM_EXPORT(PeiVectorTable)
//============================================================
//Default Exception Handlers
diff --git a/ArmPlatformPkg/PrePeiCore/AArch64/Helper.S b/ArmPlatformPkg/PrePeiCore/AArch64/Helper.S index a11cda0..8e23b03 100644 --- a/ArmPlatformPkg/PrePeiCore/AArch64/Helper.S +++ b/ArmPlatformPkg/PrePeiCore/AArch64/Helper.S @@ -18,8 +18,8 @@ .text
.align 3
-ASM_GLOBAL ASM_PFX(SetupExceptionLevel1)
-ASM_GLOBAL ASM_PFX(SetupExceptionLevel2)
+GCC_ASM_EXPORT(SetupExceptionLevel1)
+GCC_ASM_EXPORT(SetupExceptionLevel2)
// Setup EL1 while in EL1
ASM_PFX(SetupExceptionLevel1):
diff --git a/ArmPlatformPkg/PrePeiCore/AArch64/SwitchStack.S b/ArmPlatformPkg/PrePeiCore/AArch64/SwitchStack.S index d3fcd0a..8d83510 100644 --- a/ArmPlatformPkg/PrePeiCore/AArch64/SwitchStack.S +++ b/ArmPlatformPkg/PrePeiCore/AArch64/SwitchStack.S @@ -17,7 +17,7 @@ .text
.align 3
-ASM_GLOBAL ASM_PFX(SecSwitchStack)
+GCC_ASM_EXPORT(SecSwitchStack)
diff --git a/ArmPlatformPkg/Sec/AArch64/Helper.S b/ArmPlatformPkg/Sec/AArch64/Helper.S index 490d3df..259aca4 100644 --- a/ArmPlatformPkg/Sec/AArch64/Helper.S +++ b/ArmPlatformPkg/Sec/AArch64/Helper.S @@ -18,11 +18,11 @@ .text
.align 3
-ASM_GLOBAL ASM_PFX(SwitchToNSExceptionLevel1)
-ASM_GLOBAL ASM_PFX(enter_monitor_mode)
-ASM_GLOBAL ASM_PFX(return_from_exception)
-ASM_GLOBAL ASM_PFX(copy_cpsr_into_spsr)
-ASM_GLOBAL ASM_PFX(set_non_secure_mode)
+GCC_ASM_EXPORT(SwitchToNSExceptionLevel1)
+GCC_ASM_EXPORT(enter_monitor_mode)
+GCC_ASM_EXPORT(return_from_exception)
+GCC_ASM_EXPORT(copy_cpsr_into_spsr)
+GCC_ASM_EXPORT(set_non_secure_mode)
// Switch from EL3 to NS-EL1
ASM_PFX(SwitchToNSExceptionLevel1):
|