xref: /illumos-gate/usr/src/boot/i386/boot.ldscript (revision dd72704bd9e794056c558153663c739e2012d721)
1/*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
6 *
7 * A full copy of the text of the CDDL should have accompanied this
8 * source.  A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
10 */
11/*
12 * Copyright 2019 Toomas Soome <tsoome@me.com>
13 */
14
15OUTPUT_FORMAT("elf32-i386-sol2", "elf32-i386-sol2", "elf32-i386-sol2")
16OUTPUT_ARCH(i386)
17ENTRY(_start)
18SECTIONS
19{
20	. = 0x0;
21	.text . :
22	{
23		*(.text .text.*)
24		*(.plt)
25	}
26	.data :
27	{
28		*(.rodata .rodata.*)
29		*(.rodata1)
30		*(.data .data.*)
31		*(.got.plt .got)
32		_edata = .;
33	}
34	.bss :
35	{
36		__bss_start = . ;
37		*(.bss .bss.*)
38		*(COMMON)
39	}
40	.edata :
41	{
42		_end = . ;
43	}
44	/DISCARD/ :		/* Not used in boot2 */
45	{
46		*(set_Xcommand_set)
47	}
48}
49