flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > ELF format problems |
Author |
|
Tomasz Grysztar 06 Mar 2005, 22:18
This is because of the very specific alignment handling in case of ELF executables. The ELF specification states:
Quote: (...) loadable process segments must have This means that the address of given section (I mean here the entry in program header, they're also called segments to distinguish from the object sections) modulo page size must be the same as offset in file module page size. So if the size of ELF header is 74h and the first section starts in the file just after the header, offset in file is 74h and address in memory must be 74h module the page size, so fasm makes it be your base address + 74h. So each section doesn't really start at the beginning of its page, but somewhere inside, depending on the alignment in file. |
|||
06 Mar 2005, 22:18 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.