Re: [PATCH 8/9] ARM: Separate assembler functions into their own section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/19/2012 10:13 AM, Sascha Hauer wrote:
> To let the linker remove unused functions.
> 
> Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
> ---
>  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?

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox

[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux