map.noexdata revision 24da5b34f49324ed742a340010ed5bd3d4e06625
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
dd1ce8b52478fa98c844720af9e77fae2978f18dTinderbox User#ident "%Z%%M% %I% %E% SMI"
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Use is subject to license terms.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# CDDL HEADER START
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# The contents of this file are subject to the terms of the
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Common Development and Distribution License, Version 1.0 only
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# (the "License"). You may not use this file except in compliance
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# with the License.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# or http://www.opensolaris.org/os/licensing.
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# See the License for the specific language governing permissions
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# and limitations under the License.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# When distributing Covered Code, include this CDDL HEADER in each
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If applicable, add the following below this CDDL HEADER, with the
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# fields enclosed by brackets "[]" replaced with your own identifying
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# information: Portions Copyright [yyyy] [name of copyright owner]
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# CDDL HEADER END
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Linker mapfile to create a non-executable data segment
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# definition within an executable. Note that this only functions
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# properly on the x86 architecture as on SPARC the PLT contains
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# executable code; it lives at the start of the data segment.
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater# The linker does not use this file automatically, so one must use the -M
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# option to cc or ld:
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
dd1ce8b52478fa98c844720af9e77fae2978f18dTinderbox User# cc -M /usr/lib/ld/map.noexdata myprogram.c
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontdata = ?RW;
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# For programs with a separate bss segment, add a line for the bss.
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# Just adding such a line causes a bss to be created; this causes
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# some extra wasted memory. A mapfile with just the line below
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# can be safely used on SPARC.
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# bss = ?RW;
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
dd1ce8b52478fa98c844720af9e77fae2978f18dTinderbox User# See also /usr/lib/ld/map.execdata
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont