summaryrefslogtreecommitdiff
path: root/usr/src/test/elf-tests/tests/mapfiles/assert/mapfile.true
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/test/elf-tests/tests/mapfiles/assert/mapfile.true')
-rw-r--r--usr/src/test/elf-tests/tests/mapfiles/assert/mapfile.true69
1 files changed, 69 insertions, 0 deletions
diff --git a/usr/src/test/elf-tests/tests/mapfiles/assert/mapfile.true b/usr/src/test/elf-tests/tests/mapfiles/assert/mapfile.true
new file mode 100644
index 0000000000..76008effa4
--- /dev/null
+++ b/usr/src/test/elf-tests/tests/mapfiles/assert/mapfile.true
@@ -0,0 +1,69 @@
+#
+# This file and its contents are supplied under the terms of the
+# Common Development and Distribution License ("CDDL"), version 1.0.
+# You may only use this file in accordance with the terms of version
+# 1.0 of the CDDL.
+#
+# A full copy of the text of the CDDL should have accompanied this
+# source. A copy of the CDDL is also available via the Internet at
+# http://www.illumos.org/license/CDDL.
+#
+
+#
+# Copyright 2012, Richard Lowe.
+#
+
+
+$mapfile_version 2
+
+
+SYMBOL_VERSION foo {
+ global:
+ common {
+ ASSERT = {
+ TYPE = OBJECT;
+ SIZE = addrsize;
+ SH_ATTR = NOBITS;
+ BINDING = GLOBAL;
+ };
+ };
+ data {
+ ASSERT = {
+ TYPE = OBJECT;
+ SIZE = 5;
+ SH_ATTR = BITS;
+ BINDING = GLOBAL;
+ };
+ };
+ function {
+ ASSERT = {
+ TYPE = FUNCTION;
+ SH_ATTR = BITS;
+ BINDING = GLOBAL;
+ };
+ };
+ weak_function {
+ ASSERT = {
+ BINDING = WEAK;
+ ALIAS = function;
+ };
+ };
+ weak_data { ASSERT = { BINDING = WEAK; ALIAS = data; }; };
+ tbs {
+ ASSERT = {
+ TYPE = TLS;
+ SH_ATTR = NOBITS;
+ SIZE = addrsize;
+ };
+ };
+ tdata {
+ ASSERT = {
+ TYPE = TLS;
+ SH_ATTR = BITS;
+ SIZE = addrsize;
+ };
+ };
+
+ local:
+ *;
+};