2016-09-03 15:26:28 +00:00
|
|
|
/* $FreeBSD$ */
|
2020-03-04 21:01:22 +00:00
|
|
|
/* Simplified linker script for the boot loaders. */
|
2016-09-03 15:26:28 +00:00
|
|
|
OUTPUT_FORMAT("elf32-i386-freebsd")
|
|
|
|
OUTPUT_ARCH(i386)
|
|
|
|
ENTRY(_start)
|
|
|
|
SECTIONS {
|
2020-03-04 21:01:22 +00:00
|
|
|
. = ORG;
|
|
|
|
.text : { *(.text .text.*) } =0xcccccccc /* Pad with int3, if needed */
|
|
|
|
.rodata : { *(.rodata .rodata.*) }
|
|
|
|
.got : { *(.got) *(.igot) }
|
|
|
|
.got.plt : { *(.got.plt) *(.igot.plt) }
|
|
|
|
.data : { *(.data .data.*) }
|
|
|
|
_edata = .; PROVIDE (edata = .);
|
|
|
|
.bss : { *(.bss .bss.*) }
|
|
|
|
_end = .; PROVIDE (end = .);
|
|
|
|
/DISCARD/ : { *(.interp) }
|
2016-09-03 15:26:28 +00:00
|
|
|
}
|