Print this page
10908 Simplify SMAP relocations with krtld

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/Makefile.rules
          +++ new/usr/src/uts/i86pc/Makefile.rules
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  #
  23   23  # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  25   25  # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
       26 +# Copyright (c) 2017 Joyent, Inc.
  26   27  #
  27   28  
  28   29  #       This Makefile defines the build rules for the directory uts/i86pc
  29   30  #       and its children. These are the source files which are i86pc
  30   31  #       "implementation architecture" dependent.
  31   32  #
  32   33  #       The following two-level ordering must be maintained in this file.
  33   34  #         Lines are sorted first in order of decreasing specificity based on
  34   35  #         the first directory component.  That is, i86pc rules come before
  35   36  #         intel rules come before common rules.
↓ open down ↓ 272 lines elided ↑ open up ↑
 308  309  ATOMIC_SUBDIR           = $(ATOMIC_SUBDIR_$(CLASS))
 309  310  
 310  311  $(OBJS_DIR)/%.o:                $(SRC)/common/atomic/$(ATOMIC_SUBDIR)/%.s
 311  312          $(COMPILE.s) -o $@ $<
 312  313  
 313  314  #
 314  315  # dtrace stubs
 315  316  #
 316  317  
 317  318  $(OBJS_DIR)/dtracestubs.s:      $(UNIX_O) $(LIBS)
 318      -        $(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
      319 +        $(NM) -u $(UNIX_O) $(LIBS) | \
      320 +        $(EGREP) '(__dtrace_probe_|smap_(disable|enable))' | $(SORT) | \
 319  321              $(UNIQ) | $(AWK) '{ \
 320  322              printf("\t.globl %s\n\t.type %s,@function\n%s:\n", \
 321  323              $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
 322  324  
 323  325  $(DTRACESTUBS): $(DTRACESTUBS_O)
 324  326          $(BUILD.SO) $(DTRACESTUBS_O)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX