1# 2#ident "%Z%%M% %I% %E% SMI" 3# 4# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 5# Use is subject to license terms. 6# 7# CDDL HEADER START 8# 9# The contents of this file are subject to the terms of the 10# Common Development and Distribution License, Version 1.0 only 11# (the "License"). You may not use this file except in compliance 12# with the License. 13# 14# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 15# or http://www.opensolaris.org/os/licensing. 16# See the License for the specific language governing permissions 17# and limitations under the License. 18# 19# When distributing Covered Code, include this CDDL HEADER in each 20# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 21# If applicable, add the following below this CDDL HEADER, with the 22# fields enclosed by brackets "[]" replaced with your own identifying 23# information: Portions Copyright [yyyy] [name of copyright owner] 24# 25# CDDL HEADER END 26# 27# A default mapfile for optimizing the creation of a filter shared object. 28# Creates a single, read-only, executable text segment to catch all loadable 29# sections. 30# 31# Filters that consist solely of a symbol table can be built directly from 32# ld(1) so that no .init/.fini sections are created. Although the filter can 33# be constructed as a single read-only segment, the execute attribute of the 34# segment is maintained to allow for simple .init processing (i.e., .init 35# processing that requires no relocations), and to accommodate older versions 36# of dbx that produce warning messages if they find objects without traditional 37# text segments. 38# 39# If a filter is required to execute .init code that references global data 40# then the filter will require relocation (i.e., it will have to be written to 41# by ld.so.1). Filters of this sort should *not* use this mapfile. 42# 43# This compaction of a filter into a single segment allows ld.so.1 to optimize 44# its processing of a filter. If the filter is small enough this segment may 45# be handled in a single page mapping (for example libdl.so.1). 46# 47# The assignment of all allocatable sections to this segment insures that the 48# .dynamic, and any .data or .bss sections, become part of the text. Note that 49# the compiler has a habit of generating empty .data and .bss sections. 50 51filter = LOAD ?RX; 52filter : ?A; 53