Why are functions loaded at aligned addresses in x86 Linux for elf executables?
- by user344787
Hi,
I've been looking at Linux elf executables on x86, mostly using IDA but
also gdb. One thing I've noticed is functions are always loaded
at word aligned addresses? Anybody knows the reason of that?
I am not aware of any requirement of x86 instructions to start
at aligned addresses. And it cannot be due to page alignment cause
the page boundary can still be anywhere within the function.
I would appreciate any insight at all.
Thanks.