xref: /illumos-gate/usr/src/uts/i86pc/conf/Mapfile.amd64 (revision 8119dad84d6416f13557b0ba8e2aaf9064cbcfd3)
1#
2# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
3#
4# CDDL HEADER START
5#
6# The contents of this file are subject to the terms of the
7# Common Development and Distribution License (the "License").
8# You may not use this file except in compliance with the License.
9#
10# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11# or http://www.opensolaris.org/os/licensing.
12# See the License for the specific language governing permissions
13# and limitations under the License.
14#
15# When distributing Covered Code, include this CDDL HEADER in each
16# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17# If applicable, add the following below this CDDL HEADER, with the
18# fields enclosed by brackets "[]" replaced with your own identifying
19# information: Portions Copyright [yyyy] [name of copyright owner]
20#
21# CDDL HEADER END
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
41LOAD_SEGMENT text {
42	FLAGS =READ EXECUTE;
43	NOHDR;
44	PADDR = 0x400000;
45	VADDR = 0xFFFFFFFFFB800000;
46	OS_ORDER = .text;
47	ASSIGN_SECTION {
48		TYPE = PROGBITS;
49		FLAGS = ALLOC !WRITE;
50	};
51};
52
53#
54# kernel data
55#
56LOAD_SEGMENT data {
57	FLAGS = READ WRITE EXECUTE;
58	PADDR = 0x800000;
59	VADDR = 0xFFFFFFFFFBc00000;
60	OS_ORDER = .data;
61	ASSIGN_SECTION {
62		TYPE = PROGBITS;
63		FLAGS = ALLOC WRITE;
64	};
65	ASSIGN_SECTION {
66		TYPE = NOBITS;
67		FLAGS = ALLOC WRITE;
68	};
69};
70
71NOTE_SEGMENT note {
72	ASSIGN_SECTION {
73		TYPE = NOTE;
74	};
75};
76