xref: /illumos-gate/usr/src/test/elf-tests/tests/mapfiles/parser/mapfile.sizemult.overflow (revision 374858d291554c199353841e2900bc130463934a)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2012, Richard Lowe.
14#
15
16$mapfile_version 2
17
18SYMBOL_VERSION foo {
19    global:
20	gensym { TYPE = DATA;
21		  # Overflow size
22$if _ELF32
23		  SIZE = 0xffffffff[0x2];
24$elif _ELF64
25		  SIZE = 0xffffffffffffffff[0x2];
26$else
27$error unknown platform
28$endif
29	};
30
31    local:
32	*;
33};
34