3 * Put the .text section at 0x0 explicitly. While we know it will minimally
4 * end up at 0x280, (the size of the PE/COFF headers being 0x250 bytes and the
5 * minimum alignment 0x40), choosing 0x280 as the offset causes problems when
6 * linking objects with a greater .text alignment, since the section's base
7 * must adhere to its own alignment.
8 * Using 0x0 will result in the PE/COFF binary's memory layout to be shifted
9 * with respect to the ELF version, but this shouldn't be a problem as long as
10 * the .data's offset relative to .text is kept the same.
12 .text 0x0 : ALIGN(0x40) {
13 *(.text .text.* .rodata .rodata.*)
17 * The alignment of the .data section needs to be less than or equal to the
18 * alignment of the .text section. This ensures that the relative offset
19 * between these sections is the same in the ELF and the PE/COFF version of