xref: /freebsd/stand/i386/boot.ldscript (revision 1d386b48a555f61cb7325543adbbb5c3f3407a66)
1/* Simplified linker script for the boot loaders. */
2OUTPUT_FORMAT("elf32-i386-freebsd")
3OUTPUT_ARCH(i386)
4ENTRY(_start)
5SECTIONS {
6  . = ORG;
7  .text : { *(.text .text.*) } =0xcccccccc	/* Pad with int3, if needed */
8  .rodata : { *(.rodata .rodata.*) }
9  .got : { *(.got) *(.igot) }
10  .got.plt : { *(.got.plt) *(.igot.plt) }
11  .data : { *(.data .data.*) }
12  _edata = .; PROVIDE (edata = .);
13  .bss : { *(.bss .bss.*) }
14  _end = .; PROVIDE (end = .);
15  /DISCARD/ : { *(.interp) }
16}
17