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