Print this page
1235 Use symbol capabilities to eliminate libc_hwcap*

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/i386_hwcap1/mapfile
          +++ new/usr/src/lib/libc/capabilities/i386-hwcap3/mapfile-cap
   1    1  #
   2      -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
   3      -#
   4    2  # CDDL HEADER START
   5    3  #
   6    4  # The contents of this file are subject to the terms of the
   7    5  # Common Development and Distribution License (the "License").
   8    6  # You may not use this file except in compliance with the License.
   9    7  #
  10    8  # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  11    9  # or http://www.opensolaris.org/os/licensing.
  12   10  # See the License for the specific language governing permissions
  13   11  # and limitations under the License.
  14   12  #
  15   13  # When distributing Covered Code, include this CDDL HEADER in each
  16   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17   15  # If applicable, add the following below this CDDL HEADER, with the
  18   16  # fields enclosed by brackets "[]" replaced with your own identifying
  19   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  20   18  #
  21   19  # CDDL HEADER END
  22   20  #
  23   21  
       22 +#
       23 +# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
       24 +# Copyright 2017 Nexenta Systems, Inc.
       25 +#
       26 +
  24   27  $mapfile_version 2
  25   28  
  26      -CAPABILITY {
  27      -        hw += fpu cmov sep mmx sse;
       29 +CAPABILITY i386-hwcap3 {
       30 +        HW += fpu cmov mmx sse;
       31 +};
       32 +
       33 +SYMBOL_SCOPE {
       34 +    global:
       35 +        _memcpy;
       36 +        _memmove;
       37 +        _memset;
       38 +        memcpy;
       39 +        memmove;
       40 +        memset;
       41 +    local:
       42 +        *;
  28   43  };
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX