Print this page
10080 smatch Makefile changes for usr/src/cmd

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/rtld/Makefile.com
          +++ new/usr/src/cmd/sgs/rtld/Makefile.com
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  #
  23   23  # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  RTLD=           ld.so.1
  27   28  
  28   29  AVLOBJ=         avl.o
  29   30  DTROBJ=         dtrace_data.o
  30   31  TOOLOBJS=       alist.o strhash.o
  31   32  BLTOBJ=         msg.o
  32   33  ELFCAPOBJ=      elfcap.o
  33   34  OBJECTS=        $(BLTOBJ) \
  34   35                  $(AVLOBJ) \
↓ open down ↓ 47 lines elided ↑ open up ↑
  82   83                   $(CPPFEATUREMACROS)
  83   84  
  84   85  ASFLAGS=        -P -D_ASM $(CPPFLAGS)
  85   86  LDLIB =         -L ../../libld/$(MACH)
  86   87  RTLDLIB =       -L ../../librtld/$(MACH)
  87   88  
  88   89  CERRWARN +=     -_gcc=-Wno-uninitialized
  89   90  CERRWARN +=     -_gcc=-Wno-unused-variable
  90   91  CERRWARN +=     -_gcc=-Wno-switch
  91   92  
       93 +# not linted
       94 +SMATCH=off
       95 +
  92   96  # These definitions require that libc be built in the same workspace
  93   97  # as the run-time linker and before the run-time linker is built.
  94   98  # This is required for the system's self-consistency in any case.
  95   99  CPICLIB =       $(VAR_RTLD_CPICLIB)
  96  100  CPICLIB64 =     $(VAR_RTLD_CPICLIB64)
  97  101  CLIB =          -lc_pic
  98  102  
  99  103  LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) \
 100  104                  $(CPICLIB) $(CLIB) \
 101  105                  $(LDDBGLIBDIR) $(LDDBG_LIB) \
 102  106                  $(RTLDLIB) -lrtld \
 103      -                $(LDLIB) $(LD_LIB) 
      107 +                $(LDLIB) $(LD_LIB)
 104  108  
 105  109  DYNFLAGS +=     -i -e _rt_boot $(VERSREF) $(ZNODLOPEN) \
 106  110                  $(ZINTERPOSE) -zdtrace=dtrace_data '-R$$ORIGIN'
 107  111  
 108  112  BUILD.s=        $(AS) $(ASFLAGS) $< -o $@
 109  113  
 110  114  BLTDEFS=        msg.h
 111  115  BLTDATA=        msg.c
 112  116  BLTMESG=        $(SGSMSGDIR)/rtld
 113  117  
↓ open down ↓ 36 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX