xref: /illumos-gate/usr/src/test/elf-tests/tests/mapfiles/assert/mapfile.guidance (revision 8222814ef8560ee0ba222eca8ca5acffc6cd0e44)
1*8222814eSRichard Lowe#
2*8222814eSRichard Lowe# This file and its contents are supplied under the terms of the
3*8222814eSRichard Lowe# Common Development and Distribution License ("CDDL"), version 1.0.
4*8222814eSRichard Lowe# You may only use this file in accordance with the terms of version
5*8222814eSRichard Lowe# 1.0 of the CDDL.
6*8222814eSRichard Lowe#
7*8222814eSRichard Lowe# A full copy of the text of the CDDL should have accompanied this
8*8222814eSRichard Lowe# source.  A copy of the CDDL is also available via the Internet at
9*8222814eSRichard Lowe# http://www.illumos.org/license/CDDL.
10*8222814eSRichard Lowe#
11*8222814eSRichard Lowe
12*8222814eSRichard Lowe#
13*8222814eSRichard Lowe# Copyright 2012, Richard Lowe.
14*8222814eSRichard Lowe#
15*8222814eSRichard Lowe
16*8222814eSRichard Lowe
17*8222814eSRichard Lowe$mapfile_version 2
18*8222814eSRichard Lowe
19*8222814eSRichard Lowe
20*8222814eSRichard LoweSYMBOL_VERSION foo {
21*8222814eSRichard Lowe    global:
22*8222814eSRichard Lowe	common;
23*8222814eSRichard Lowe	data;
24*8222814eSRichard Lowe	function	{
25*8222814eSRichard Lowe			  ASSERT = {
26*8222814eSRichard Lowe				  TYPE = FUNCTION;
27*8222814eSRichard Lowe				  SH_ATTR = BITS;
28*8222814eSRichard Lowe				  BINDING = GLOBAL;
29*8222814eSRichard Lowe				};
30*8222814eSRichard Lowe			};
31*8222814eSRichard Lowe	weak_function	{
32*8222814eSRichard Lowe			  ASSERT = {
33*8222814eSRichard Lowe				  BINDING = WEAK;
34*8222814eSRichard Lowe				  ALIAS = function;
35*8222814eSRichard Lowe				};
36*8222814eSRichard Lowe			};
37*8222814eSRichard Lowe	weak_data	{ ASSERT = { BINDING = WEAK; ALIAS = data; }; };
38*8222814eSRichard Lowe	tbs;
39*8222814eSRichard Lowe	tdata;
40*8222814eSRichard Lowe
41*8222814eSRichard Lowe    local:
42*8222814eSRichard Lowe	*;
43*8222814eSRichard Lowe};
44