flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Alignment problem with the ELF output |
Author |
|
Tomasz Grysztar 27 Sep 2005, 14:35
In ELF executables the p_vaddr and p_offset must be the same modulo p_align. Thus the offset in file and address in memory for each section must have the same last three hexadecimal digits.
I forgot to mention in docs that for ELF executables the sections are not aligned by default (because of the above) - you can however use any "align" inside those sections freely, since the ELF executables are not relocatable (and thus $ is an absolute value). |
|||
27 Sep 2005, 14:35 |
|
revolution 28 Sep 2005, 01:24
Quote: you can however use any "align" inside those sections freely, since the ELF executables are not relocatable (and thus $ is an absolute value). |
|||
28 Sep 2005, 01:24 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.