.text
- .globl mystart
-mystart:
+ .align 2
+ .globl _main
+_main:
#if defined(__x86_64__)
pushq $0
mov %rsp, %rbp
mov %esp, %ecx
sysenter
nop
+#elif defined(__arm__)
+ push { lr }
+ mov r0, #42
+ mov r12, #1
+ svc 0x00000080
+ bcc 1f
+1:
+ nop
+ nop
+ nop
+ nop
+#elif defined(__arm64__)
+ movz x0, #42
+ movz x16, #1
+ svc #0x80
+ b.cc 1f
+1:
+ nop
#else
#error Unsupported architecture
#endif