Merge "Add comments about why "call" instead of "jump" is used."
This commit is contained in:
@@ -53,6 +53,7 @@ _start:
|
||||
ldr r2, =main
|
||||
adr r3, 1f
|
||||
ldr r4, =__libc_init
|
||||
# Use blx intead of bx so stack unwinding past __libc_init can terminate at _start
|
||||
blx r4
|
||||
mov r0, #0
|
||||
bx r0
|
||||
|
||||
@@ -53,6 +53,7 @@ _start:
|
||||
ldr r2, =main
|
||||
adr r3, 1f
|
||||
ldr r4, =__libc_init
|
||||
# Use blx intead of bx so stack unwinding past __libc_init can terminate at _start
|
||||
blx r4
|
||||
mov r0, #0
|
||||
bx r0
|
||||
|
||||
@@ -64,6 +64,7 @@ _start:
|
||||
la $a3, 1f
|
||||
subu $sp, 32
|
||||
la $t9, __libc_init
|
||||
# Use jalr intead of jr so stack unwinding past __libc_init can terminate at _start
|
||||
jalr $t9
|
||||
move $t9, $0
|
||||
j $t9
|
||||
|
||||
@@ -64,6 +64,7 @@ _start:
|
||||
la $a3, 1f
|
||||
subu $sp, 32
|
||||
la $t9, __libc_init
|
||||
# Use jalr intead of jr so stack unwinding past __libc_init can terminate at _start
|
||||
jalr $t9
|
||||
move $t9, $0
|
||||
j $t9
|
||||
|
||||
Reference in New Issue
Block a user