4 * Linker script for the i386 setup code
6 OUTPUT_FORMAT("elf32-i386")
18 .header : { *(.header) }
19 .entrytext : { *(.entrytext) }
20 .inittext : { *(.inittext) }
21 .initdata : { *(.initdata) }
24 .text : { *(.text .text.*) }
25 .text32 : { *(.text32) }
27 .pecompat : { *(.pecompat) }
28 PROVIDE(pecompat_fsize = setup_size - pecompat_fstart);
31 .rodata : { *(.rodata*) }
46 setup_size = ALIGN(ABSOLUTE(.), 4096);
47 setup_sects = ABSOLUTE(setup_size / 512);
65 * The ASSERT() sink to . is intentional, for binutils 2.14 compatibility:
67 . = ASSERT(_end <= 0x8000, "Setup too big!");
68 . = ASSERT(hdr == 0x1f1, "The setup header has the wrong offset!");
69 /* Necessary for the very-old-loader check to work... */
70 . = ASSERT(__end_init <= 5*512, "init sections too big!");