map.noexbss revision 10590:43ff5881adbb
1#
2# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# CDDL HEADER START
6#
7# The contents of this file are subject to the terms of the
8# Common Development and Distribution License (the "License").
9# You may not use this file except in compliance with the License.
10#
11# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12# or http://www.opensolaris.org/os/licensing.
13# See the License for the specific language governing permissions
14# and limitations under the License.
15#
16# When distributing Covered Code, include this CDDL HEADER in each
17# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18# If applicable, add the following below this CDDL HEADER, with the
19# fields enclosed by brackets "[]" replaced with your own identifying
20# information: Portions Copyright [yyyy] [name of copyright owner]
21#
22# CDDL HEADER END
23#
24# Link-editor mapfile to create a non-executable bss segment definition
25# within an executable.  This mapfile is similar to map.noexdata that
26# can be used on x86 architectures to create a non-executable data
27# segment.  On SPARC, the data segment contains a Procedure Linkage
28# Table (PLT) that must remain executable.
29#
30# As the bss segment is extended by sbrk(2) to enlarge the heap, a
31# non-executable bss segment also results in a non-exutable heap.
32#
33# The link-editor does not use this file automatically, so one must
34# use the -M option to cc or ld:
35#
36#       cc -M /usr/lib/ld/map.noexbss myprogram.c
37#
38bss = ?RW;
39
40# See also /usr/lib/ld/map.noexdata.
41