glue: implement for riscv64
Change-Id: I0d701050e8ee008db68b54d458de07c653a370d7 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3920 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
@@ -21,8 +21,12 @@
|
|||||||
|
|
||||||
.section .init
|
.section .init
|
||||||
FUNCTION(_init):
|
FUNCTION(_init):
|
||||||
|
addi sp, sp, -16
|
||||||
|
sd ra, 8(sp)
|
||||||
// crtbegin.o stuff comes here
|
// crtbegin.o stuff comes here
|
||||||
|
|
||||||
.section .fini
|
.section .fini
|
||||||
FUNCTION(_fini):
|
FUNCTION(_fini):
|
||||||
// crtbegin.o stuff comes here
|
addi sp, sp, -16
|
||||||
|
sd ra, 8(sp)
|
||||||
|
// crtend.o stuff comes here
|
||||||
|
|||||||
@@ -9,9 +9,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.section .init
|
.section .init
|
||||||
// the image ID and program args are still on the stack
|
ld ra, 8(sp)
|
||||||
|
addi sp, sp, 16
|
||||||
|
ret
|
||||||
|
|
||||||
|
|
||||||
.section .fini
|
.section .fini
|
||||||
// the image ID and program args are still on the stack
|
ld ra, 8(sp)
|
||||||
|
addi sp, sp, 16
|
||||||
|
ret
|
||||||
|
|||||||
Reference in New Issue
Block a user