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		__start_set_Xcommand_set = .;
33		KEEP(*(set_Xcommand_set))
34		__stop_set_Xcommand_set = .;
35		__start_set_Xficl_compile_set = .;
36		KEEP(*(set_Xficl_compile_set))
37		__stop_set_Xficl_compile_set = .;
38		_edata = .;
39	}
40
41	.bss :
42	{
43		__bss_start = . ;
44		*(.bss .bss.*)
45		*(COMMON)
46	}
47	.edata :
48	{
49		_end = . ;
50	}
51}
52