Reading argc value in ARM64 assembly
I’m trying to read argc value in my aarch64 assembly program. I know that it should be stored in x0 register, with argv being in x1. When I tried to debug this with GDB I found out that depending on how I compile my code x0 folds different values at start, but never argc value.
My code:
error: unknown AArch64 fixup kind!: adr X1, msg
I am working on a hello world program in arm64 assembly on my apple silicon mac. Here is my code:
.org directive outside section is OK when using GNU AS assembler?
I’m trying to analyse startup code of AArch64 processor.