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; This program and the accompanying materials 12; are licensed and made available under the terms and conditions of the BSD License 13; which accompanies this distribution. The full text of the license may be found at 14; http://opensource.org/licenses/bsd-license.php 15; 16; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 17; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 18; 19;**/ 20 21 22 MACRO 23 RVCT_ASM_EXPORT $func 24 EXPORT $func 25 AREA s_$func, CODE, READONLY 26$func 27 MEND 28 29 END 30