]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Include/AsmMacroExport.inc
BaseTools: Library hashing fix and optimization for --hash feature
[mirror_edk2.git] / ArmPkg / Include / AsmMacroExport.inc
1 ;%HEADER%
2 ;/** @file
3 ; Macros to centralize the EXPORT, AREA, and definition of an assembly
4 ; function. The AREA prefix is required to put the function in its own
5 ; section so that removal of unused functions in the final link is performed.
6 ; This provides equivalent functionality to the compiler's --split-sections
7 ; option.
8 ;
9 ; Copyright (c) 2015 HP Development Company, L.P.
10 ;
11 ; SPDX-License-Identifier: BSD-2-Clause-Patent
12 ;
13 ;**/
14
15
16 MACRO
17 RVCT_ASM_EXPORT $func
18 EXPORT $func
19 AREA s_$func, CODE, READONLY
20 $func
21 MEND
22
23 END