Print this page
9059 Simplify SMAP relocations with krtld
Portions contributed by: John Levon <john.levon@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/Makefile.rules
          +++ new/usr/src/uts/i86pc/Makefile.rules
↓ open down ↓ 317 lines elided ↑ open up ↑
 318  318  ATOMIC_SUBDIR           = $(ATOMIC_SUBDIR_$(CLASS))
 319  319  
 320  320  $(OBJS_DIR)/%.o:                $(SRC)/common/atomic/$(ATOMIC_SUBDIR)/%.s
 321  321          $(COMPILE.s) -o $@ $<
 322  322  
 323  323  #
 324  324  # dtrace stubs
 325  325  #
 326  326  
 327  327  $(OBJS_DIR)/dtracestubs.s:      $(UNIX_O) $(LIBS)
 328      -        $(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
      328 +        $(NM) -u $(UNIX_O) $(LIBS) | \
      329 +        $(EGREP) '(__dtrace_probe_|smap_(disable|enable))' | $(SORT) | \
 329  330              $(UNIQ) | $(AWK) '{ \
 330  331              printf("\t.globl %s\n\t.type %s,@function\n%s:\n", \
 331  332              $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
 332  333  
 333  334  $(DTRACESTUBS): $(DTRACESTUBS_O)
 334  335          $(BUILD.SO) $(DTRACESTUBS_O)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX