summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-12-24 18:55:17 +0530
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-01-08 12:34:36 +0100
commit7bf35c8b7d4a1f97174eb49f47f33946b282114c (patch)
tree36ad636dcf8eb2968245a25e33599e9f48357b9f /libc
parent3580da1fe73e6b49a3810c766be0ecf06d2e038b (diff)
ARC: opencode ENTRY/END macros in crt1
crt1.S -> include sysdep.h -> include sysnum.h In multistage gcc build, Buildroot happens to build crt1.S before sysnum.h is generated. So break the above include chain and opencode the ENTRY/END macros. Reported-by: Anton Kolesov <akolesov@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/arc/crt1.S11
1 files changed, 7 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/arc/crt1.S b/libc/sysdeps/linux/arc/crt1.S
index d78a96dcc..95c41f888 100644
--- a/libc/sysdeps/linux/arc/crt1.S
+++ b/libc/sysdeps/linux/arc/crt1.S
@@ -5,7 +5,6 @@
*/
#include <features.h>
-#include <sysdep.h>
.text
@@ -31,7 +30,12 @@
env[0...N] environment variables (pointers)
NULL
*/
-ENTRY(__start)
+ .text
+ .align 4
+ .global __start
+ .hidden __start
+ .type __start,@function
+__start:
mov fp, 0
ld_s r1, [sp] ; argc
@@ -50,5 +54,4 @@ ENTRY(__start)
/* Should never get here.... */
flag 1
-END(__start)
-libc_hidden_def(__start)
+.size __start,.-__start