xref: /haiku/src/system/ldscripts/x86/boot_loader_bios_ia32.ld (revision 7b3e89c0944ae1efa9a8fc66c7303874b7a344b2)
1OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
2OUTPUT_ARCH(i386)
3
4ENTRY(_start)
5SECTIONS
6{
7	. = 0x10000;
8
9	/* text/read-only data */
10	.text :	{ *(.text .gnu.linkonce.t.*) }
11
12	. = ALIGN(0x4);
13	__ctor_list = .;
14	.ctors : { *(.ctors) }
15	__ctor_end = .;
16
17	.rodata : { *(.rodata .rodata.*) }
18
19	/* writable data  */
20	. = ALIGN(0x1000);
21	__data_start = .;
22	.data : { *(.data .gnu.linkonce.d.*) }
23	_haiku_revision : { *(_haiku_revision) }
24
25	/* uninitialized data (in same segment as writable data) */
26	__bss_start = .;
27	.bss : { *(.bss) }
28
29	. = ALIGN(0x1000);
30	_end = . ;
31
32	/* Strip unnecessary stuff */
33	/DISCARD/ : { *(.comment .note .eh_frame .dtors .stab .stabstr .debug*) }
34}
35