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