xref: /openbsd/sys/arch/luna88k/conf/ld.script (revision 5af055cd)
1/*	$OpenBSD: ld.script,v 1.4 2013/11/03 09:42:55 miod Exp $	*/
2
3/*
4 * Copyright (c) 2012 Miodrag Vallat.
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19OUTPUT_FORMAT("elf32-m88k")
20OUTPUT_ARCH(m88k)
21ENTRY(__start)
22SECTIONS
23{
24	.text :
25	{
26		*(.text)
27		PROVIDE(etext = ABSOLUTE(.));
28	}
29	. = ALIGN(0x80000);
30	.rodata :
31	{
32		*(.rodata*)
33		PROVIDE(erodata = ABSOLUTE(.));
34	}
35	. = ALIGN(0x80000);
36	.data :
37	{
38		*(.data)
39		PROVIDE(edata = ABSOLUTE(.));
40	}
41	.bss :
42	{
43		*(.bss)
44	}
45	PROVIDE(end = ABSOLUTE(.));
46	/DISCARD/ :
47	{
48		*(.comment)
49	}
50}
51