YKG / reading

0 stars 0 forks source link

questions #3

Open YKG opened 2 years ago

YKG commented 2 years ago

How it works

Where it use

YKG commented 2 years ago

Linux

YKG commented 2 years ago
YKG commented 2 years ago
YKG commented 2 years ago

Answer:

YKG commented 2 years ago

Answer:

$ cat  >prog.s << EOF
    .global _start
    .intel_syntax noprefix

_start:
    mov rdi, 0x0
    mov rax, 0x3c
    syscall
EOF
$ gcc -nostdlib prog.s -o prog
$ objdump -d prog # check
YKG commented 2 years ago

Refer: https://stackoverflow.com/questions/64016087/writing-the-simplest-assembly-debugger