From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 10.mo1.mail-out.ovh.net ([178.32.96.102] helo=mo1.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SupLo-0002hT-SH for barebox@lists.infradead.org; Fri, 27 Jul 2012 18:33:25 +0000 Received: from mail94.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo1.mail-out.ovh.net (Postfix) with SMTP id 32931FF97DC for ; Fri, 27 Jul 2012 20:39:14 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 27 Jul 2012 20:33:05 +0200 Message-Id: <1343413990-31891-7-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1343413990-31891-1-git-send-email-plagnioj@jcrosoft.com> References: <20120727183103.GX22657@game.jcrosoft.org> <1343413990-31891-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 07/12] ARM: Separate assembler functions into their own section To: barebox@lists.infradead.org From: Sascha Hauer To let the linker remove unused functions. Signed-off-by: Sascha Hauer --- arch/arm/lib/findbit.S | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/lib/findbit.S b/arch/arm/lib/findbit.S index ef4caff..422455d 100644 --- a/arch/arm/lib/findbit.S +++ b/arch/arm/lib/findbit.S @@ -22,6 +22,7 @@ * Purpose : Find a 'zero' bit * Prototype: int find_first_zero_bit(void *addr, unsigned int maxbit); */ +.section .text._find_first_zero_bit_le ENTRY(_find_first_zero_bit_le) teq r1, #0 beq 3f @@ -43,6 +44,7 @@ ENDPROC(_find_first_zero_bit_le) * Purpose : Find next 'zero' bit * Prototype: int find_next_zero_bit(void *addr, unsigned int maxbit, int offset) */ +.section .text._find_next_zero_bit_le ENTRY(_find_next_zero_bit_le) teq r1, #0 beq 3b @@ -63,6 +65,7 @@ ENDPROC(_find_next_zero_bit_le) * Purpose : Find a 'one' bit * Prototype: int find_first_bit(const unsigned long *addr, unsigned int maxbit); */ +.section .text._find_first_bit_le ENTRY(_find_first_bit_le) teq r1, #0 beq 3f @@ -84,6 +87,7 @@ ENDPROC(_find_first_bit_le) * Purpose : Find next 'one' bit * Prototype: int find_next_zero_bit(void *addr, unsigned int maxbit, int offset) */ +.section .text._find_next_bit_le ENTRY(_find_next_bit_le) teq r1, #0 beq 3b @@ -101,6 +105,7 @@ ENDPROC(_find_next_bit_le) #ifdef __ARMEB__ +.section .text._find_first_zero_bit_be ENTRY(_find_first_zero_bit_be) teq r1, #0 beq 3f @@ -118,6 +123,7 @@ ENTRY(_find_first_zero_bit_be) mov pc, lr ENDPROC(_find_first_zero_bit_be) +.section .text._find_next_zero_bit_be ENTRY(_find_next_zero_bit_be) teq r1, #0 beq 3b @@ -135,6 +141,7 @@ ENTRY(_find_next_zero_bit_be) b 2b @ loop for next bit ENDPROC(_find_next_zero_bit_be) +.section .text._find_first_bit_be ENTRY(_find_first_bit_be) teq r1, #0 beq 3f @@ -152,6 +159,7 @@ ENTRY(_find_first_bit_be) mov pc, lr ENDPROC(_find_first_bit_be) +.section .text._find_next_bit_be ENTRY(_find_next_bit_be) teq r1, #0 beq 3b @@ -173,6 +181,7 @@ ENDPROC(_find_next_bit_be) /* * One or more bits in the LSB of r3 are assumed to be set. */ +.section .text.L_found .L_found: #if __LINUX_ARM_ARCH__ >= 5 rsb r0, r3, #0 -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox