implement glue for arm

Change-Id: I2752fb8b1c8843e8344a10295caf82e9603ed5e2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4973
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Fredrik Holmqvist <[email protected]>
This commit is contained in:
David Karoly
2022-02-24 16:39:15 +00:00
committed by Fredrik Holmqvist
parent 4ddef6e701
commit f06e0279a5
2 changed files with 16 additions and 5 deletions
+7 -2
View File
@@ -1,4 +1,7 @@
/*
* Copyright 2022, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Copyright 2005, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License.
*/
@@ -21,8 +24,10 @@
.section .init
FUNCTION(_init):
// crtbegin.o stuff comes here
sub sp, sp, #8
str lr, [sp]
.section .fini
FUNCTION(_fini):
// crtbegin.o stuff comes here
sub sp, sp, #8
str lr, [sp]
+9 -3
View File
@@ -1,4 +1,7 @@
/*
* Copyright 2022, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Copyright 2005, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License.
*/
@@ -9,9 +12,12 @@
*/
.section .init
// the image ID and program args are still on the stack
ldr lr, [sp]
add sp, sp, #8
bx lr
.section .fini
// the image ID and program args are still on the stack
ldr lr, [sp]
add sp, sp, #8
bx lr