1# 2# Copyright (c) 2004, 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 to create an executable data segment definition within 24# an executable for applications which rely on this. This is the default 25# for 32 bit x86 executable and all SPARC executables; this mapfile is 26# provided to facilitate an executable data segment for AMD64 executables. 27# 28# The link-editor does not use this file automatically, so one must use the 29# -M option to cc or ld: 30# 31# cc -M /usr/lib/ld/map.execdata myprogram.c 32# 33 34$mapfile_version 2 35 36LOAD_SEGMENT data { 37 FLAGS = READ WRITE EXECUTE; 38}; 39 40# 41# Executables can also create a separate executable bss segment. Adding 42# the following line creates a bss segment. 43# 44# LOAD_SEGMENT bss { FLAGS = READ WRITE EXECUTE }; 45# 46# See also /usr/lib/ld/map.noexdata. 47