I have a simple assembly code (aarch64) as follows,
mov x1, #1
mov x1, #2
and I want to convert it to shellcode.
What I did:
#> as simple.s -o simple.o
#> objcopy -O binary simple.o simple.bin
after that, I checked the content of with xxd
#> xxd simple.bin
However, The value 1 and 2 are not seemed in result binary.
0000000: 2100 80d2 4100 80d2 !...A...
did I use the objcopy wrongly ?