xref: /illumos-gate/usr/src/common/mapfiles/common/map.bssalign (revision b30d193948be5a7794d7ae3ba0ed9c2f72c88e0f)
1#
2# Copyright (c) 2001, 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# Link-editor mapfile that enables the creation of a bss segment, and aligns
24# the segment at 4Mb.  This effectively provides an appropriate alignment for
25# large page mapping of the heap, and thus can be useful when building dynamic
26# executables.  See ppgsz(1).  Users are cautioned that an alignment
27# specification may be machine-specific, and may lose its benefit on different
28# hardware platforms.  A more flexible means of requesting the most optimal
29# underlying page size may evolve in future releases.
30#
31# The link-editor does not use this file automatically, so one must use the
32# -M option to cc or ld:
33#
34#       cc -M /usr/lib/ld/map.bssalign myprogram.c
35#
36
37$mapfile_version 2
38
39LOAD_SEGMENT bss {
40	ALIGN = 0x400000;
41};
42