xref: /titanic_52/usr/src/uts/i86pc/conf/Mapfile (revision 9b241b4ed1cf882400b069ff9853cdd310d469bf)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
22#
23
24$mapfile_version 2
25
26#
27# this is the 32 bit 1:1 mapped code to which grub jumps.
28#
29LOAD_SEGMENT dboot {
30	FLAGS = READ WRITE EXECUTE;
31	NOHDR;
32	PADDR = 0xC00000;
33	VADDR = 0xC00000;
34	ASSIGN_SECTION {
35		TYPE = PROGBITS;
36		FLAGS = ALLOC WRITE;
37		FILE_BASENAME = dboot.o;
38	};
39};
40
41#
42# this is the kernel text
43#
44LOAD_SEGMENT text {
45	FLAGS = READ EXECUTE;
46	NOHDR;
47	PADDR = 0x400000;
48	VADDR = 0xFE800000;
49	OS_ORDER = .text;
50	ASSIGN_SECTION {
51		TYPE = PROGBITS;
52		FLAGS = ALLOC !WRITE;
53	};
54};
55
56#
57# start the data segment on a new 4MB page boundary
58#
59LOAD_SEGMENT data {
60	FLAGS = READ WRITE EXECUTE;
61	PADDR = 0x800000;
62	VADDR = 0xFEc00000;
63	OS_ORDER = .data;
64	ASSIGN_SECTION {
65		TYPE = PROGBITS;
66		FLAGS = ALLOC WRITE;
67	};
68	ASSIGN_SECTION {
69		TYPE = NOBITS;
70		FLAGS = ALLOC WRITE;
71	};
72};
73
74NOTE_SEGMENT note {
75	ASSIGN_SECTION {
76		TYPE = NOTE;
77	};
78};
79