summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sgs/rtld/common/mapfile-order-gcc
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/sgs/rtld/common/mapfile-order-gcc')
-rw-r--r--usr/src/cmd/sgs/rtld/common/mapfile-order-gcc26
1 files changed, 19 insertions, 7 deletions
diff --git a/usr/src/cmd/sgs/rtld/common/mapfile-order-gcc b/usr/src/cmd/sgs/rtld/common/mapfile-order-gcc
index c719599999..f466ea9e8e 100644
--- a/usr/src/cmd/sgs/rtld/common/mapfile-order-gcc
+++ b/usr/src/cmd/sgs/rtld/common/mapfile-order-gcc
@@ -20,10 +20,7 @@
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Note: This mapfile is used to place r_debug as the
# very first data item inside of the run-time linker.
@@ -41,6 +38,21 @@
# devpro mapfile: rtld/common/mapfile-order-devpro
#
-data = LOAD ?RWXO;
-data : .data.rel : pics/debugdata.o;
-data | .data.rel;
+$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;
+};