bug/bundler_fix
Tim 2017-08-29 13:08:40 +08:00
parent 7b71f60ea1
commit ffbf21cb1c
2 changed files with 5 additions and 8 deletions

View File

@ -2,9 +2,6 @@
.equ SYS_MMAP, 0xde
.equ SYS_EXIT, 0x5d
.equ SIZE, 0xeeeeeeee
.equ ENTRY, 0xffffffff
start:
adr x2, size
ldr w2, [x2]
@ -94,8 +91,8 @@ failed:
.balign 16
size:
.word SIZE
.word 0
.word 0
entry:
.word ENTRY
.word 0
.word 0

View File

@ -37,7 +37,7 @@ start:
mov x2, #4
mov x8, SYS_READ
svc 0
cmn x0, #0x1
cmn x0, #0x1
beq failed
ldr w2, [sp,#0]
@ -56,7 +56,7 @@ start:
mov x5, xzr
mov x8, SYS_MMAP
svc 0
cmn x0, #0x1
cmn x0, #0x1
beq failed
/* Grab the saved size, save the address */
@ -75,7 +75,7 @@ read_loop:
mov x2, x4
mov x8, SYS_READ
svc 0
cmn x0, #0x1
cmn x0, #0x1
beq failed
add x3, x3, x0
subs x4, x4, x0