[PATCH] mips start.S: using marco EXPORT(_start) result _start symbol can not be found in System.map

Kevin Du Huanpeng u74147 at gmail.com
Mon Nov 25 21:25:12 EST 2013


the _start symbol is not found in System.map if using EXPORT(_start) .
when TEXT_BASE changed, I can't see if the _start linked to the right
address in System.map.

- - -
diff --git a/arch/mips/boot/start.S b/arch/mips/boot/start.S
index 7e2ae5e..75d7ac8 100644
--- a/arch/mips/boot/start.S
+++ b/arch/mips/boot/start.S
@@ -49,9 +49,8 @@ _pc:  addiu   \rd, ra, \label - _pc           #
label is assumed to be
        .text
        .section ".text_bare_init"
        .align 4
-
-EXPORT(_start)
-
+       .globl _start
+_start:
        b       __start
         nop
- - -



More information about the barebox mailing list