Print this page
OS-5558 libmd should leverage SHA extensions

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libmd/common/mapfile-vers
          +++ new/usr/src/lib/libmd/common/mapfile-vers
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  # Copyright 2013 Saso Kiselkov. All rights reserved.
       24 +# Copyright (c) 2018, Joyent, Inc.
  24   25  #
  25   26  
  26   27  #
  27   28  # MAPFILE HEADER START
  28   29  #
  29   30  # WARNING:  STOP NOW.  DO NOT MODIFY THIS FILE.
  30   31  # Object versioning must comply with the rules detailed in
  31   32  #
  32   33  #       usr/src/lib/README.mapfiles
  33   34  #
↓ open down ↓ 60 lines elided ↑ open up ↑
  94   95          SHA256Update    { FLAGS = NODYNSORT };
  95   96          SHA2Final;
  96   97          SHA2Init;
  97   98          SHA2Update;
  98   99          SHA384Final     { FLAGS = NODYNSORT };
  99  100          SHA384Init;
 100  101          SHA384Update    { FLAGS = NODYNSORT };
 101  102          SHA512Final     { FLAGS = NODYNSORT };
 102  103          SHA512Init;
 103  104          SHA512Update    { FLAGS = NODYNSORT };
      105 +};
      106 +
      107 +SYMBOL_VERSION ILLUMOSprivate {
      108 +    global:
      109 +$if _ELF64 && _x86
      110 +        #
      111 +        # We use hardware capabilities to define multiple versions of
      112 +        # the processing certain values. Unfortunately, at this time,
      113 +        # that requires these to be global symbols, even though we don't
      114 +        # want them to be. As such, they remain in a private version and
      115 +        # hopefully some day will be removed.
      116 +        #
      117 +        sha1_block_data_order;
      118 +        SHA256TransformBlocks;
      119 +$endif
 104  120      local:
 105  121          *;
 106  122  };
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX