Print this page
10816 ctf_dwarf_convert_type() relies on un-initialized id
10817 ctfconvert -i option is mis-handled
10818 Improve ctfconvert error messages
10819 ctfconvert should handle empty dies
10820 ctfconvert -i never converts
10821 bad free in ctf_dwarf_init_die
10815 shouldn't build gcore.c as part of kmdb
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/Makefile.master
          +++ new/usr/src/Makefile.master
↓ open down ↓ 959 lines elided ↑ open up ↑
 960  960  amd64_CC_PICFLAGS =     -_cc=-Kpic -_gcc=-fpic
 961  961  CC_PICFLAGS =           $($(MACH)_CC_PICFLAGS)
 962  962  CC_PICFLAGS64 =         $($(MACH64)_CC_PICFLAGS)
 963  963  
 964  964  AS_PICFLAGS=            -K pic
 965  965  AS_BIGPICFLAGS=         -K PIC
 966  966  
 967  967  #
 968  968  # Default label for CTF sections
 969  969  #
 970      -CTFCVTFLAGS=            -i -L VERSION
      970 +CTFCVTFLAGS=            -L VERSION
 971  971  
 972  972  #
 973  973  # Override to pass module-specific flags to ctfmerge.  Currently used only by
 974  974  # krtld to turn on fuzzy matching, and source-level debugging to inhibit
 975  975  # stripping.
 976  976  #
 977  977  CTFMRGFLAGS=
 978  978  
 979  979  #
 980  980  # Make the transition between old and new CTF Tools. The new ctf tools
↓ open down ↓ 2 lines elided ↑ open up ↑
 983  983  #
 984  984  BUILD_NEW_CTF_TOOLS=
 985  985  BUILD_OLD_CTF_TOOLS=$(POUND_SIGN)
 986  986  $(BUILD_OLD_CTF_TOOLS)BUILD_NEW_CTF_TOOLS= $(POUND_SIGN)
 987  987  
 988  988  CTFCONVERT_O            = $(CTFCONVERT) $(CTFCVTFLAGS) $@
 989  989  
 990  990  # Rules (normally from make.rules) and macros which are used for post
 991  991  # processing files. Normally, these do stripping of the comment section
 992  992  # automatically.
 993      -#    RELEASE_CM:        Should be editted to reflect the release.
 994      -#    POST_PROCESS_O:    Post-processing for `.o' files.
 995      -#    POST_PROCESS_A:    Post-processing for `.a' files (currently null).
      993 +#    RELEASE_CM:        Should be edited to reflect the release.
      994 +#    POST_PROCESS_O:    Post-processing for `.o' files (typically C source)
      995 +#    POST_PROCESS_S_O:  Post-processing for `.o' files built from asssembly
      996 +#    POST_PROCESS_CC_O: Post-processing for `.o' files built from C++
      997 +#    POST_PROCESS_A:            Post-processing for `.a' files (currently null).
 996  998  #    POST_PROCESS_SO:   Post-processing for `.so' files.
 997  999  #    POST_PROCESS:      Post-processing for executable files (no suffix).
     1000 +#
 998 1001  # Note that these macros are not completely generalized as they are to be
 999 1002  # used with the file name to be processed following.
1000 1003  #
1001 1004  # It is left as an exercise to Release Engineering to embellish the generation
1002 1005  # of the release comment string.
1003 1006  #
1004 1007  #       If this is a standard development build:
1005 1008  #               compress the comment section (mcs -c)
1006 1009  #               add the standard comment (mcs -a $(RELEASE_CM))
1007 1010  #               add the development specific comment (mcs -a $(DEV_CM))
↓ open down ↓ 31 lines elided ↑ open up ↑
1039 1042  RELEASE_CM=     "@($(POUND_SIGN))SunOS $(RELEASE) $(PATCHID) $(PATCH_DATE)"
1040 1043  DEV_CM=         "@($(POUND_SIGN))SunOS Internal Development: non-nightly build"
1041 1044  
1042 1045  PROCESS_COMMENT=  @?${MCS} -d -a $(RELEASE_CM) -a $(DEV_CM)
1043 1046  $(RELEASE_BUILD)PROCESS_COMMENT=   @?${MCS} -d -a $(RELEASE_CM)
1044 1047  
1045 1048  STRIP_STABS=                       $(STRIP) -x $@
1046 1049  $(SRCDBGBLD)STRIP_STABS=           :
1047 1050  
1048 1051  POST_PROCESS_O=
     1052 +POST_PROCESS_S_O=
     1053 +POST_PROCESS_CC_O=
1049 1054  POST_PROCESS_A=
1050 1055  POST_PROCESS_SO=        $(PROCESS_COMMENT) $@ ; $(STRIP_STABS) ; \
1051 1056                          $(ELFSIGN_OBJECT)
1052 1057  POST_PROCESS=           $(PROCESS_COMMENT) $@ ; $(STRIP_STABS) ; \
1053 1058                          $(ELFSIGN_OBJECT)
1054 1059  
1055 1060  #
1056 1061  # chk4ubin is a tool that inspects a module for a symbol table
1057 1062  # ELF section size which can trigger an OBP bug on older platforms.
1058 1063  # This problem affects only specific sun4u bootable modules.
↓ open down ↓ 25 lines elided ↑ open up ↑
1084 1089  .c.o:
1085 1090          $(COMPILE.c) $(OUTPUT_OPTION) $< $(CTFCONVERT_HOOK)
1086 1091          $(POST_PROCESS_O)
1087 1092  .c.a:
1088 1093          $(COMPILE.c) -o $% $<
1089 1094          $(PROCESS_COMMENT) $%
1090 1095          $(AR) $(ARFLAGS) $@ $%
1091 1096          $(RM) $%
1092 1097  .s.o:
1093 1098          $(COMPILE.s) -o $@ $<
1094      -        $(POST_PROCESS_O)
     1099 +        $(POST_PROCESS_S_O)
1095 1100  .s.a:
1096 1101          $(COMPILE.s) -o $% $<
1097 1102          $(PROCESS_COMMENT) $%
1098 1103          $(AR) $(ARFLAGS) $@ $%
1099 1104          $(RM) $%
1100 1105  .cc:
1101 1106          $(LINK.cc) -o $@ $< $(LDLIBS)
1102 1107          $(POST_PROCESS)
1103 1108  .cc.o:
1104 1109          $(COMPILE.cc) $(OUTPUT_OPTION) $<
1105      -        $(POST_PROCESS_O)
     1110 +        $(POST_PROCESS_CC_O)
1106 1111  .cc.a:
1107 1112          $(COMPILE.cc) -o $% $<
1108 1113          $(AR) $(ARFLAGS) $@ $%
1109 1114          $(PROCESS_COMMENT) $%
1110 1115          $(RM) $%
1111 1116  .y:
1112 1117          $(YACC.y) $<
1113 1118          $(LINK.c) -o $@ y.tab.c $(LDLIBS)
1114 1119          $(POST_PROCESS)
1115 1120          $(RM) y.tab.c
↓ open down ↓ 131 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX