If you compile, link and run something like this:
global _start
section .text
_start:
jmp message
proc:
...
message:
call proc
msg db " y0u sp34k 1337 ? "
section .data
- How does the machine know where he needs to jump? I guess "message:" and "proc:" are translated to adresses.
- Do "message:" and "proc:" have absolute or relative addresses?
- If I compiled the programm on my PC and execute it on another PC, how can it work on the other machine? I mean regarding the addresses for "message:" and "proc:". Will it be always a different address?