diff options
Diffstat (limited to 'linker/arch/arm/begin.S')
-rw-r--r-- | linker/arch/arm/begin.S | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/linker/arch/arm/begin.S b/linker/arch/arm/begin.S new file mode 100644 index 0000000..f9b3bac --- /dev/null +++ b/linker/arch/arm/begin.S @@ -0,0 +1,17 @@ + .text + .align 4 + .type _start,#function + .globl _start + +_start: + mov r0, sp + mov r1, #0 + bl __linker_init + + /* linker init returns the _entry address in the main image */ + mov pc, r0 + + .section .ctors, "wa" + .globl __CTOR_LIST__ +__CTOR_LIST__: + .long -1 |