void foo() { return 2; }
int main() {
foo();
return 0;
}
OBJ: call _foo (direct symbol), opcode: (E8 = relative add)
EXE: call j__foo (stub symbol)
I think the assembler plants the stub
because it is a reference in an object file
and in the end it is not known where the function will sit in the exe
New contributor
ASKPLAYER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.