From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Srxbq-0007FR-EG for barebox@lists.infradead.org; Thu, 19 Jul 2012 20:46:10 +0000 Date: Thu, 19 Jul 2012 22:45:48 +0200 From: Sascha Hauer Message-ID: <20120719204548.GI30009@pengutronix.de> References: <1342685582-13244-1-git-send-email-s.hauer@pengutronix.de> <1342685582-13244-9-git-send-email-s.hauer@pengutronix.de> <5007E38B.8040106@pengutronix.de> <20120719140834.GY30009@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120719140834.GY30009@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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: Re: [PATCH 8/9] ARM: Separate assembler functions into their own section To: Marc Kleine-Budde Cc: barebox@lists.infradead.org On Thu, Jul 19, 2012 at 04:08:34PM +0200, Sascha Hauer wrote: > On Thu, Jul 19, 2012 at 12:38:03PM +0200, Marc Kleine-Budde wrote: > > On 07/19/2012 10:13 AM, Sascha Hauer wrote: > > > To let the linker remove unused functions. > > > > > > Signed-off-by: Sascha Hauer > > > --- > > > arch/arm/cpu/cache-armv4.S | 7 ++++++- > > > arch/arm/cpu/cache-armv5.S | 7 ++++++- > > > arch/arm/cpu/cache-armv6.S | 11 +++++++++-- > > > arch/arm/cpu/cache-armv7.S | 8 ++++++-- > > > arch/arm/lib/ashldi3.S | 1 + > > > arch/arm/lib/ashrdi3.S | 1 + > > > arch/arm/lib/findbit.S | 9 +++++++++ > > > arch/arm/lib/io-writesw-armv4.S | 2 ++ > > > arch/arm/lib/lib1funcs.S | 7 +++++++ > > > arch/arm/lib/lshrdi3.S | 1 + > > > 10 files changed, 48 insertions(+), 6 deletions(-) > > > > > > diff --git a/arch/arm/cpu/cache-armv4.S b/arch/arm/cpu/cache-armv4.S > > > index 6d03565..2231eee 100644 > > > --- a/arch/arm/cpu/cache-armv4.S > > > +++ b/arch/arm/cpu/cache-armv4.S > > > @@ -3,6 +3,7 @@ > > > > > > #define CACHE_DLINESIZE 32 > > > > > > +.section .text.__mmu_cache_on > > > ENTRY(__mmu_cache_on) > > > > Is it possible to add the section to the ENTRY macro? > > I'm not sure. I was pretty sure that some assembly functions fall > through to the next function. I cannot find any examples though. For example we have this: .section .text.__divsi3 ENTRY(__divsi3) ENTRY(__aeabi_idiv) ... Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox