xref: /titanic_41/usr/src/common/mapfiles/common/map.bssalign (revision cd3e933325e68e23516a196a8fea7f49b1e497c3)
124da5b34Srie#
2*cd3e9333SAli Bahrami# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
324da5b34Srie#
424da5b34Srie# CDDL HEADER START
524da5b34Srie#
624da5b34Srie# The contents of this file are subject to the terms of the
7a4faba16SRod Evans# Common Development and Distribution License (the "License").
8a4faba16SRod Evans# You may not use this file except in compliance with the License.
924da5b34Srie#
1024da5b34Srie# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1124da5b34Srie# or http://www.opensolaris.org/os/licensing.
1224da5b34Srie# See the License for the specific language governing permissions
1324da5b34Srie# and limitations under the License.
1424da5b34Srie#
1524da5b34Srie# When distributing Covered Code, include this CDDL HEADER in each
1624da5b34Srie# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1724da5b34Srie# If applicable, add the following below this CDDL HEADER, with the
1824da5b34Srie# fields enclosed by brackets "[]" replaced with your own identifying
1924da5b34Srie# information: Portions Copyright [yyyy] [name of copyright owner]
2024da5b34Srie#
2124da5b34Srie# CDDL HEADER END
2224da5b34Srie#
23a4faba16SRod Evans# Link-editor mapfile that enables the creation of a bss segment, and aligns
2424da5b34Srie# the segment at 4Mb.  This effectively provides an appropriate alignment for
2524da5b34Srie# large page mapping of the heap, and thus can be useful when building dynamic
2624da5b34Srie# executables.  See ppgsz(1).  Users are cautioned that an alignment
2724da5b34Srie# specification may be machine-specific, and may lose its benefit on different
2824da5b34Srie# hardware platforms.  A more flexible means of requesting the most optimal
2924da5b34Srie# underlying page size may evolve in future releases.
3024da5b34Srie#
31a4faba16SRod Evans# The link-editor does not use this file automatically, so one must use the
32a4faba16SRod Evans# -M option to cc or ld:
3324da5b34Srie#
3424da5b34Srie#       cc -M /usr/lib/ld/map.bssalign myprogram.c
3524da5b34Srie#
36*cd3e9333SAli Bahrami
37*cd3e9333SAli Bahrami$mapfile_version 2
38*cd3e9333SAli Bahrami
39*cd3e9333SAli BahramiLOAD_SEGMENT bss {
40*cd3e9333SAli Bahrami	ALIGN = 0x400000;
41*cd3e9333SAli Bahrami};
42