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