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:
parent
18e49f7470
commit
a05e312009
|
@ -34,6 +34,8 @@ Boston, MA 02110-1301, USA. */
|
|||
#define ah r1
|
||||
#endif
|
||||
|
||||
.section .text.__ashldi3
|
||||
|
||||
.globl __ashldi3
|
||||
__ashldi3:
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@ Boston, MA 02110-1301, USA. */
|
|||
#define ah r1
|
||||
#endif
|
||||
|
||||
.section .text.__ashrdi3
|
||||
|
||||
.globl __ashrdi3
|
||||
__ashrdi3:
|
||||
|
||||
|
|
|
@ -94,6 +94,8 @@
|
|||
|
||||
.endm
|
||||
|
||||
.section .text.__divsi3
|
||||
|
||||
.align 5
|
||||
.globl __divsi3
|
||||
__divsi3:
|
||||
|
|
|
@ -32,6 +32,7 @@ Boston, MA 02110-1301, USA. */
|
|||
#define al r0
|
||||
#define ah r1
|
||||
#endif
|
||||
.section .text.__lshrdi3
|
||||
|
||||
.globl __lshrdi3
|
||||
__lshrdi3:
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
.section .text.__modsi3
|
||||
|
||||
.macro ARM_MOD_BODY dividend, divisor, order, spare
|
||||
|
||||
#if __LINUX_ARM_ARCH__ >= 5
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* also call with zero size.
|
||||
* Reworked by rmk.
|
||||
*/
|
||||
.text
|
||||
.section .text.basic_bit_functions
|
||||
|
||||
/*
|
||||
* Purpose : Find a 'zero' bit
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#endif
|
||||
.endm
|
||||
|
||||
.section .text.readsw
|
||||
|
||||
.Linsw_align: movs ip, r1, lsl #31
|
||||
bne .Linsw_noalign
|
||||
ldrh ip, [r0]
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#endif
|
||||
.endm
|
||||
|
||||
.section .text.writesb
|
||||
|
||||
.Loutsb_align: rsb ip, ip, #4
|
||||
cmp ip, r2
|
||||
movgt ip, r2
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#endif
|
||||
.endm
|
||||
|
||||
.section .text.writesw
|
||||
|
||||
.Loutsw_align: movs ip, r1, lsl #31
|
||||
bne .Loutsw_noalign
|
||||
|
||||
|
|
Loading…
Reference in New Issue