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