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:
committed by
Fredrik Holmqvist
parent
4ddef6e701
commit
f06e0279a5
@@ -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.
|
* Copyright 2005, Axel Dörfler, axeld@pinc-software.de.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
@@ -21,8 +24,10 @@
|
|||||||
|
|
||||||
.section .init
|
.section .init
|
||||||
FUNCTION(_init):
|
FUNCTION(_init):
|
||||||
// crtbegin.o stuff comes here
|
sub sp, sp, #8
|
||||||
|
str lr, [sp]
|
||||||
|
|
||||||
.section .fini
|
.section .fini
|
||||||
FUNCTION(_fini):
|
FUNCTION(_fini):
|
||||||
// crtbegin.o stuff comes here
|
sub sp, sp, #8
|
||||||
|
str lr, [sp]
|
||||||
|
|||||||
@@ -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.
|
* Copyright 2005, Axel Dörfler, axeld@pinc-software.de.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
@@ -9,9 +12,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.section .init
|
.section .init
|
||||||
// the image ID and program args are still on the stack
|
ldr lr, [sp]
|
||||||
|
add sp, sp, #8
|
||||||
|
bx lr
|
||||||
|
|
||||||
.section .fini
|
.section .fini
|
||||||
// the image ID and program args are still on the stack
|
ldr lr, [sp]
|
||||||
|
add sp, sp, #8
|
||||||
|
bx lr
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user