mapfile-order-gcc revision cd3e933325e68e23516a196a8fea7f49b1e497c3
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A
2N/A#
2N/A# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A# Note: This mapfile is used to place r_debug as the
2N/A# very first data item inside of the run-time linker.
2N/A# This is required for the ld.so.1 <--> rtld_db bootstraping
2N/A# for debuggers.
2N/A#
2N/A# The issue with this is that gcc/devpro do not agree on the
2N/A# name of the section this data should be placed in. So -
2N/A# we must have a mapfile for each.
2N/A#
2N/A# If you update this file - make sure you update
2N/A# the matching file:
2N/A#
2N/A# gcc mapfile: rtld/common/mapfile-order-gcc
2N/A# devpro mapfile: rtld/common/mapfile-order-devpro
2N/A#
2N/A
2N/A$mapfile_version 2
LOAD_SEGMENT data {
FLAGS = READ WRITE EXECUTE;
# .data.rel sections from pics/debugdata.o go to data segment
ASSIGN_SECTION dbg_data {
IS_NAME = .data.rel;
FILE_PATH = pics/debugdata.o;
};
# Put .data.rel sections from pics/debugdata.o ahead of any other
# .data.rel input sections in the .data.rel output section.
IS_ORDER = dbg_data;
# Put .data.rel output section at top of data segment
OS_ORDER = .data.rel;
};