I am studying for a test, and I have the following question: In the ELF header it is said that the file's entry point is at 0x8049058
the code is:
section .data
x: dd 3
_start: mov ecx, [x]
...
...
... ;more code
Q: what will be the virtual address of x at run time?
the correct answer is 0x0849054
can someone please shed light on this? If x would be as followd, will it still be in the same address?
section .bss
x: resb 4
section .data
_start: mov ecx, [x]
...
...
... ;more code
where exacly does an entry point "Take" me? And what sections are close to it?