xref: /illumos-gate/usr/src/uts/sun4/conf/Mapfile (revision cd3e9333)
17c478bd9Sstevel@tonic-gate#
2*cd3e9333SAli Bahrami# Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# CDDL HEADER START
57c478bd9Sstevel@tonic-gate#
67c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
7986fd29aSsetje# Common Development and Distribution License (the "License").
8986fd29aSsetje# You may not use this file except in compliance with the License.
97c478bd9Sstevel@tonic-gate#
107c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
117c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
127c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
137c478bd9Sstevel@tonic-gate# and limitations under the License.
147c478bd9Sstevel@tonic-gate#
157c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
167c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
177c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
187c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
197c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate# CDDL HEADER END
22*cd3e9333SAli Bahrami
23*cd3e9333SAli Bahrami$mapfile_version 2
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# Some four meg of kernel virtual address space
277c478bd9Sstevel@tonic-gate# is mapped via a locked 4-meg mapping in the ITLB
287c478bd9Sstevel@tonic-gate#
29*cd3e9333SAli BahramiLOAD_SEGMENT text {
30*cd3e9333SAli Bahrami	FLAGS = READ EXECUTE;
31*cd3e9333SAli Bahrami	NOHDR;
32*cd3e9333SAli Bahrami	VADDR = 0x01000000;
33*cd3e9333SAli Bahrami	OS_ORDER = .text;
34*cd3e9333SAli Bahrami	ASSIGN_SECTION {
35*cd3e9333SAli Bahrami		TYPE = PROGBITS;
36*cd3e9333SAli Bahrami		FLAGS = ALLOC !WRITE;
37*cd3e9333SAli Bahrami	};
38*cd3e9333SAli Bahrami};
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gate#
417c478bd9Sstevel@tonic-gate# Another four meg of kernel virtual address space
427c478bd9Sstevel@tonic-gate# is mapped via a locked 4-meg mapping in the DTLB
437c478bd9Sstevel@tonic-gate#
44*cd3e9333SAli BahramiLOAD_SEGMENT data {
45*cd3e9333SAli Bahrami	FLAGS = READ WRITE EXECUTE;
46*cd3e9333SAli Bahrami	VADDR = 0x01800000;
47*cd3e9333SAli Bahrami	ALIGN = 0x00400000;
48*cd3e9333SAli Bahrami	OS_ORDER = .data;
49*cd3e9333SAli Bahrami	ASSIGN_SECTION {
50*cd3e9333SAli Bahrami		TYPE = PROGBITS;
51*cd3e9333SAli Bahrami		FLAGS = ALLOC WRITE;
52*cd3e9333SAli Bahrami	};
53*cd3e9333SAli Bahrami	ASSIGN_SECTION {
54*cd3e9333SAli Bahrami		TYPE = NOBITS;
55*cd3e9333SAli Bahrami		FLAGS = ALLOC WRITE;
56*cd3e9333SAli Bahrami	};
57*cd3e9333SAli Bahrami};
587c478bd9Sstevel@tonic-gate
59986fd29aSsetje#
60986fd29aSsetje# put reloc seg in space between text and data
61986fd29aSsetje# it will be freed by the kernel after use
62986fd29aSsetje#
63*cd3e9333SAli BahramiLOAD_SEGMENT reloc {
64*cd3e9333SAli Bahrami	FLAGS = READ WRITE;
65*cd3e9333SAli Bahrami	VADDR = 0x01402000;
66*cd3e9333SAli Bahrami	ASSIGN_SECTION { TYPE = DYNSYM };
67*cd3e9333SAli Bahrami	ASSIGN_SECTION { TYPE = HASH };
68*cd3e9333SAli Bahrami	ASSIGN_SECTION { IS_NAME = .dynstr };
69*cd3e9333SAli Bahrami	ASSIGN_SECTION { IS_NAME = .rela.text };
70*cd3e9333SAli Bahrami	ASSIGN_SECTION { IS_NAME = .rela.data };
71*cd3e9333SAli Bahrami};
727c478bd9Sstevel@tonic-gate
73*cd3e9333SAli BahramiNOTE_SEGMENT note {
74*cd3e9333SAli Bahrami	ASSIGN_SECTION {
75*cd3e9333SAli Bahrami		TYPE = NOTE;
76*cd3e9333SAli Bahrami	};
77*cd3e9333SAli Bahrami};
78