This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH, ARM AArch64] Remove the user namespace symbol 'start' from newlib and libgloss
- From: Yufeng Zhang <Yufeng dot Zhang at arm dot com>
- To: newlib at sourceware dot org
- Date: Fri, 09 Aug 2013 22:07:40 +0100
- Subject: [PATCH, ARM AArch64] Remove the user namespace symbol 'start' from newlib and libgloss
Hi
This patch removes the symbol 'start' from newlib and libgloss in the
ARM and AArch64 ports, as 'start' shall be a user namespace symbol. The
entry point is '_start' on elf systems.
Passed test on arm-none-eabi and aarch64-none-elf.
OK for the trunk?
Thanks,
Yufeng
libgloss/
* aarch64/crt0.S: Remove 'start'.
* arm/crt0.S: Ditto.
* arm/redboot-crt0.S: Ditto.
newlib/
* libc/sys/arm/crt0.S: Remove 'start'.
diff --git a/libgloss/aarch64/crt0.S b/libgloss/aarch64/crt0.S
index 1a5cabb..ae6264d 100644
--- a/libgloss/aarch64/crt0.S
+++ b/libgloss/aarch64/crt0.S
@@ -81,7 +81,6 @@
FUNC_START _mainCRTStartup
FUNC_START _start
- FUNC_START start
/* Start by setting up a stack */
diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S
index 5e33036..9246849 100644
--- a/libgloss/arm/crt0.S
+++ b/libgloss/arm/crt0.S
@@ -72,7 +72,6 @@
FUNC_START _mainCRTStartup
FUNC_START _start
- FUNC_START start
#if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
/* Annotation for EABI unwinding tables. */
.fnstart
diff --git a/libgloss/arm/redboot-crt0.S b/libgloss/arm/redboot-crt0.S
index 88eb60d..1d90228 100644
--- a/libgloss/arm/redboot-crt0.S
+++ b/libgloss/arm/redboot-crt0.S
@@ -28,7 +28,6 @@
.endm
.code 32
#endif
- FUNC_START SYM_NAME(start)
FUNC_START SYM_NAME(_start)
/* Unnecessary to set fp for v6-m/v7-m, which don't support
ARM state. */
diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S
index 5e85ee2..b56072f 100644
--- a/newlib/libc/sys/arm/crt0.S
+++ b/newlib/libc/sys/arm/crt0.S
@@ -72,7 +72,6 @@
FUNC_START _mainCRTStartup
FUNC_START _start
- FUNC_START start
#if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
/* Annotation for EABI unwinding tables. */
.fnstart