From: Benoît Thébaudeau Date: Thu, 11 Apr 2013 09:35:47 +0000 (+0000) Subject: arm: crt0.S: Remove bogus .globl X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=9c5feab76fe15332193fe3f1ba183021fb84c203;p=u-boot.git arm: crt0.S: Remove bogus .globl The purpose of .globl is to export symbols for ld, not to declare external symbols. By the way, use the ENTRY() and ENDPROC() macros to define functions rather than using .global directly. Signed-off-by: Benoît Thébaudeau --- diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S index 37d9927d2c..1524f7eb69 100644 --- a/arch/arm/lib/crt0.S +++ b/arch/arm/lib/crt0.S @@ -24,6 +24,7 @@ #include #include +#include /* * This file handles the target-independent stages of the U-Boot @@ -66,34 +67,11 @@ * 6. Branch to either nand_boot() or board_init_r(). */ -/* - * declare nand_boot() or board_init_r() to jump to at end of crt0 - */ - -#if defined(CONFIG_NAND_SPL) - -.globl nand_boot - -#elif ! defined(CONFIG_SPL_BUILD) - -.globl board_init_r - -#endif - -/* - * start and end of BSS - */ - -.globl __bss_start -.globl __bss_end - /* * entry point of crt0 sequence */ -.global _main - -_main: +ENTRY(_main) /* * Set up initial C runtime environment and call board_init_f(0). @@ -171,3 +149,5 @@ clbss_l:cmp r0, r1 /* while not at end of BSS */ /* we should not return here. */ #endif + +ENDPROC(_main)