Skip to content
Snippets Groups Projects
Commit 5b22163f authored by Mike Frysinger's avatar Mike Frysinger
Browse files

Blackfin: add proper ELF markings to some assembly functions

parent cf675d3b
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
*/ */
.globl _memcmp; .globl _memcmp;
.type _memcmp, STT_FUNC;
_memcmp: _memcmp:
I1 = P3; I1 = P3;
P0 = R0; /* P0 = s1 address */ P0 = R0; /* P0 = s1 address */
...@@ -98,3 +99,5 @@ _memcmp: ...@@ -98,3 +99,5 @@ _memcmp:
R0 = 0; R0 = 0;
P3 = I1; P3 = I1;
RTS; RTS;
.size _memcmp, .-_memcmp
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
.align 2 .align 2
.globl _memcpy_ASM; .globl _memcpy_ASM;
.type _memcpy_ASM, STT_FUNC;
_memcpy_ASM: _memcpy_ASM:
CC = R2 <= 0; /* length not positive?*/ CC = R2 <= 0; /* length not positive?*/
IF CC JUMP .L_P1L2147483647; /* Nothing to do */ IF CC JUMP .L_P1L2147483647; /* Nothing to do */
...@@ -112,3 +113,5 @@ _memcpy_ASM: ...@@ -112,3 +113,5 @@ _memcpy_ASM:
B[P0--] = R1; B[P0--] = R1;
RTS; RTS;
.size _memcpy_ASM, .-_memcpy_ASM
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
*/ */
.globl _memmove; .globl _memmove;
.type _memmove, STT_FUNC;
_memmove: _memmove:
I1 = P3; I1 = P3;
P0 = R0; /* P0 = To address */ P0 = R0; /* P0 = To address */
...@@ -91,3 +92,5 @@ _memmove: ...@@ -91,3 +92,5 @@ _memmove:
.Lno_loop: B[P0] = R1; .Lno_loop: B[P0] = R1;
P3 = I1; P3 = I1;
RTS; RTS;
.size _memmove, .-_memmove
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
*/ */
.globl _memset; .globl _memset;
.type _memset, STT_FUNC;
_memset: _memset:
P0 = R0 ; /* P0 = address */ P0 = R0 ; /* P0 = address */
P2 = R2 ; /* P2 = count */ P2 = R2 ; /* P2 = count */
...@@ -91,3 +92,5 @@ _memset: ...@@ -91,3 +92,5 @@ _memset:
B[P0++] = R1; B[P0++] = R1;
B[P0++] = R1; B[P0++] = R1;
JUMP .Laligned; JUMP .Laligned;
.size _memset, .-_memset
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment