Why is a function executed from the same memory address each time?
- by Mask
I'm disassembling an executable:
(gdb) disas main
Dump of assembler code for function main:
0x004012d0 <main+0>: push %ebp
0x004012d1 <main+1>: mov %esp,%ebp
...
Each time the memory address is the same:0x004012d0.
Isn't the memory address to be dynamically assigned by the OS?