crt-posix.s (236B)
1 .bss 2 .globl _environ 3 _environ: 4 .quad 0 5 6 .text 7 .globl _start 8 _start: 9 ldr x0,[sp] /* argc */ 10 add x1,sp,#8 /* argv */ 11 add x2,x1,x0,lsl #3 /* argv = argc + 8*argc + 8 */ 12 add x2,x2,#8 13 adr x3,_environ 14 str x2,[x3] 15 bl main 16 b exit