diff options
Diffstat (limited to 'usr/src/lib/libadm/common/mapfile-vers')
-rw-r--r-- | usr/src/lib/libadm/common/mapfile-vers | 48 |
1 files changed, 42 insertions, 6 deletions
diff --git a/usr/src/lib/libadm/common/mapfile-vers b/usr/src/lib/libadm/common/mapfile-vers index ba493269d8..78db9864f1 100644 --- a/usr/src/lib/libadm/common/mapfile-vers +++ b/usr/src/lib/libadm/common/mapfile-vers @@ -19,8 +19,7 @@ # CDDL HEADER END # # -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. +# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. # # @@ -37,7 +36,9 @@ # MAPFILE HEADER END # -SUNW_1.2 { +$mapfile_version 2 + +SYMBOL_VERSION SUNW_1.2 { global: read_extvtoc; write_extvtoc; @@ -47,19 +48,19 @@ SUNW_1.2 { # no SUNW_1.1 symbols, but the version is now kept as a placeholder. # Don't add any symbols to this version. -SUNW_1.1 { +SYMBOL_VERSION SUNW_1.1 { global: SUNW_1.1; } SUNW_0.7; -SUNW_0.7 { +SYMBOL_VERSION SUNW_0.7 { global: pkgdir; read_vtoc; write_vtoc; }; -SUNWprivate_1.1 { +SYMBOL_VERSION SUNWprivate_1.1 { global: _adddevtabrec; _adddgrptabrec; @@ -163,3 +164,38 @@ SUNWprivate_1.1 { local: *; }; + + +$if _sparc || (_x86 && _ELF32) +# The following applies to sparc (32/64-bit), and 32-bit x86: +# +# It was a mistake ever to have exported these symbols from libadm. +# They are now being redirected to libgen where they really belong, +# except for 'circf' and 'sed', which do not exist in libgen and +# are being retained as dummy variables in libadm. + +SYMBOL_VERSION SUNW_0.7 { + global: + circf; + sed; + nbra { TYPE = DATA; FILTER = libgen.so.1; SIZE = 0x4 }; +$if _ELF32 + loc1 { TYPE = DATA; FILTER = libgen.so.1; SIZE = 0x4 }; + loc2 { TYPE = DATA; FILTER = libgen.so.1; SIZE = 0x4 }; + locs { TYPE = DATA; FILTER = libgen.so.1; SIZE = 0x4 }; +$elif _ELF64 + loc1 { TYPE = DATA; FILTER = libgen.so.1; SIZE = 0x8 }; + loc2 { TYPE = DATA; FILTER = libgen.so.1; SIZE = 0x8 }; + locs { TYPE = DATA; FILTER = libgen.so.1; SIZE = 0x8 }; +$else +$error unknown ELFCLASS +$endif +}; + +SYMBOL_VERSION SUNWprivate_1.1 { + global: + advance { TYPE = FUNCTION; FILTER = libgen.so.1 }; + compile { TYPE = FUNCTION; FILTER = libgen.so.1 }; + step { TYPE = FUNCTION; FILTER = libgen.so.1 }; +}; +$endif |