xref: /titanic_52/usr/src/uts/sun4/conf/Mapfile (revision cd3e933325e68e23516a196a8fea7f49b1e497c3)
1e11f6fbcSbarnette#
2*cd3e9333SAli Bahrami# Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
3e11f6fbcSbarnette#
4e11f6fbcSbarnette# CDDL HEADER START
5e11f6fbcSbarnette#
6e11f6fbcSbarnette# 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.
9e11f6fbcSbarnette#
10e11f6fbcSbarnette# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11e11f6fbcSbarnette# or http://www.opensolaris.org/os/licensing.
12e11f6fbcSbarnette# See the License for the specific language governing permissions
13e11f6fbcSbarnette# and limitations under the License.
14e11f6fbcSbarnette#
15e11f6fbcSbarnette# When distributing Covered Code, include this CDDL HEADER in each
16e11f6fbcSbarnette# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17e11f6fbcSbarnette# If applicable, add the following below this CDDL HEADER, with the
18e11f6fbcSbarnette# fields enclosed by brackets "[]" replaced with your own identifying
19e11f6fbcSbarnette# information: Portions Copyright [yyyy] [name of copyright owner]
20e11f6fbcSbarnette#
21e11f6fbcSbarnette# CDDL HEADER END
22*cd3e9333SAli Bahrami
23*cd3e9333SAli Bahrami$mapfile_version 2
24e11f6fbcSbarnette
25e11f6fbcSbarnette#
26e11f6fbcSbarnette# Some four meg of kernel virtual address space
27e11f6fbcSbarnette# is mapped via a locked 4-meg mapping in the ITLB
28e11f6fbcSbarnette#
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};
39e11f6fbcSbarnette
40e11f6fbcSbarnette#
41e11f6fbcSbarnette# Another four meg of kernel virtual address space
42e11f6fbcSbarnette# is mapped via a locked 4-meg mapping in the DTLB
43e11f6fbcSbarnette#
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};
58e11f6fbcSbarnette
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};
72e11f6fbcSbarnette
73*cd3e9333SAli BahramiNOTE_SEGMENT note {
74*cd3e9333SAli Bahrami	ASSIGN_SECTION {
75*cd3e9333SAli Bahrami		TYPE = NOTE;
76*cd3e9333SAli Bahrami	};
77*cd3e9333SAli Bahrami};
78