9
0
Fork 0

Separate all assembler functions into their own section to

let the linker remove unused functions.

Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
This commit is contained in:
Juergen Beisert 2009-06-23 15:59:10 +02:00
parent 18e49f7470
commit a05e312009
12 changed files with 22 additions and 3 deletions

View File

@ -34,6 +34,8 @@ Boston, MA 02110-1301, USA. */
#define ah r1
#endif
.section .text.__ashldi3
.globl __ashldi3
__ashldi3:

View File

@ -34,6 +34,8 @@ Boston, MA 02110-1301, USA. */
#define ah r1
#endif
.section .text.__ashrdi3
.globl __ashrdi3
__ashrdi3:

View File

@ -94,6 +94,8 @@
.endm
.section .text.__divsi3
.align 5
.globl __divsi3
__divsi3:

View File

@ -32,6 +32,7 @@ Boston, MA 02110-1301, USA. */
#define al r0
#define ah r1
#endif
.section .text.__lshrdi3
.globl __lshrdi3
__lshrdi3:

View File

@ -1,4 +1,6 @@
.section .text.__modsi3
.macro ARM_MOD_BODY dividend, divisor, order, spare
#if __LINUX_ARM_ARCH__ >= 5

View File

@ -9,7 +9,8 @@ curbit .req r3
/* sp .req r13 */
/* lr .req r14 */
/* pc .req r15 */
.text
.section .text.__udivsi3
.globl __udivsi3
.type __udivsi3 ,function
.align 0

View File

@ -10,7 +10,8 @@ curbit .req r3
/* sp .req r13 */
/* lr .req r14 */
/* pc .req r15 */
.text
.section .text.__umodsi3
.globl __umodsi3
.type __umodsi3 ,function
.align 0

View File

@ -18,7 +18,7 @@
* also call with zero size.
* Reworked by rmk.
*/
.text
.section .text.basic_bit_functions
/*
* Purpose : Find a 'zero' bit

View File

@ -23,6 +23,8 @@
subs r2, r2, ip
bne .Linsb_aligned
.section .text.readsb
ENTRY(__raw_readsb)
teq r2, #0 @ do we have to check for the zero len?
moveq pc, lr

View File

@ -18,6 +18,8 @@
#endif
.endm
.section .text.readsw
.Linsw_align: movs ip, r1, lsl #31
bne .Linsw_noalign
ldrh ip, [r0]

View File

@ -30,6 +30,8 @@
#endif
.endm
.section .text.writesb
.Loutsb_align: rsb ip, ip, #4
cmp ip, r2
movgt ip, r2

View File

@ -22,6 +22,8 @@
#endif
.endm
.section .text.writesw
.Loutsw_align: movs ip, r1, lsl #31
bne .Loutsw_noalign