I have written a simple C code is like:
int add2(int a) {
return a+2;
}
int main()
{
int a=0;
a = add2(a);
printf("%d\n", a);
}
and when I use objdump I found this:
400558: e8 d8 ff ff ff callq 400535 <add2>
I'm wondering the relationship between the hex code e8 d8 ff ff ff
and callq 400535 <add2>
. I searched and found the hex code of callq is e8
, but what about d8 ff ff ff
? does it has some relationship with the address that callq calls? Thank you very much.