ArmPkg/CompilerIntrinsicsLib: switch to ASM_FUNC() asm macro
Annotate functions with ASM_FUNC() so that they are emitted into separate sections. Note that in some cases, various entry points refer to different parts of the same routine, so in those cases, the files have been left untouched. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
@@ -26,16 +26,10 @@
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
.text
|
||||
.align 2
|
||||
|
||||
|
||||
GCC_ASM_EXPORT(memcpy)
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
|
||||
// Taken from Newlib BSD implementation.
|
||||
ASM_PFX(memcpy):
|
||||
ASM_FUNC(memcpy)
|
||||
// Copy dst to x6, so we can preserve return value.
|
||||
mov x6, x0
|
||||
|
||||
|
Reference in New Issue
Block a user