aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys/arm
diff options
context:
space:
mode:
authorAlexander Fedotov <alfedotov@gmail.com>2019-04-11 15:28:05 +0300
committerRichard Earnshaw <Richard.Earnshaw@arm.com>2019-04-12 14:34:47 +0100
commita0b0a4a01820661724ee08f54fbba7a51b190c96 (patch)
treeb7d297948876d33b550745c79f4f8d436a8498f2 /newlib/libc/sys/arm
parentcc430406ac09d99570b5218668f2bb00371ae983 (diff)
downloadnewlib-a0b0a4a01820661724ee08f54fbba7a51b190c96.zip
newlib-a0b0a4a01820661724ee08f54fbba7a51b190c96.tar.gz
newlib-a0b0a4a01820661724ee08f54fbba7a51b190c96.tar.bz2
Align comments and spaces in libgloss/arm/crt0.S and newlib/libc/sys/arm/crt0.S to ease further code alignment.
Diffstat (limited to 'newlib/libc/sys/arm')
-rw-r--r--newlib/libc/sys/arm/crt0.S18
1 files changed, 10 insertions, 8 deletions
diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S
index 8c9f7be..7a6b40d 100644
--- a/newlib/libc/sys/arm/crt0.S
+++ b/newlib/libc/sys/arm/crt0.S
@@ -50,13 +50,13 @@
.global \name
.thumb_func
\name:
-.endm
+.endm
#else
.code 32
.macro FUNC_START name
- .global \name
+ .global \name
\name:
-.endm
+.endm
#endif
.macro indirect_call reg
@@ -68,8 +68,10 @@
#endif
.endm
+/*******************************************************************************
+* Main library startup code.
+*******************************************************************************/
.align 0
-
FUNC_START _mainCRTStartup
FUNC_START _start
#if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
@@ -399,7 +401,7 @@ __change_mode:
bl FUNCTION (_init)
movs r0, r4
movs r1, r5
-#endif
+#endif
bl FUNCTION (main)
bl FUNCTION (exit) /* Should not return. */
@@ -420,7 +422,7 @@ change_back:
#endif
/* For Thumb, constants must be after the code since only
- positive offsets are supported for PC relative addresses. */
+ positive offsets are supported for PC relative addresses. */
.align 0
.LC0:
#ifdef ARM_RDI_MONITOR
@@ -430,7 +432,7 @@ change_back:
/* Changes by toralf: Provide alternative "stack" variable whose value
may be defined externally; .Lstack will be used instead of .LC0 if
it points to a non-0 value. Also set up references to "hooks" that
- may be used by the application to provide additional init code. */
+ may be used by the application to provide additional init code. */
#ifdef __pe__
.word 0x800000
#else
@@ -449,7 +451,7 @@ change_back:
runtime (meaning "ignore setting") for the variables, when the user
does not provide the symbols. (The linker uses a weak symbol if,
and only if, a normal version of the same symbol isn't provided
- e.g. by a linker script or another object file). */
+ e.g. by a linker script or another object file.) */
.weak __stack
.weak FUNCTION (hardware_init_hook)