Print this page
5688 ELF tools need to be more careful with dwarf data


  42 BLTOBJ =        msg.o
  43 
  44 OBJS=           $(BLTOBJ) $(COMOBJ) $(COMOBJ32) $(COMOBJ64) $(TOOLOBJ)
  45 
  46 MAPFILE=        $(MAPFILE.NGB)
  47 MAPOPT=         $(MAPFILE:%=-M%)
  48 
  49 CPPFLAGS=       -I. -I../common -I../../include -I../../include/$(MACH) \
  50                 -I$(SRCBASE)/lib/libc/inc -I$(SRCBASE)/uts/$(ARCH)/sys \
  51                 $(CPPFLAGS.master) -I$(ELFCAP)
  52 LLDFLAGS =      $(VAR_ELFDUMP_LLDFLAGS)
  53 LLDFLAGS64 =    $(VAR_ELFDUMP_LLDFLAGS64)
  54 LDFLAGS +=      $(VERSREF) $(CC_USE_PROTO) $(MAPOPT) $(LLDFLAGS)
  55 LDLIBS +=       $(ELFLIBDIR) -lelf $(LDDBGLIBDIR) $(LDDBG_LIB) \
  56                     $(CONVLIBDIR) $(CONV_LIB)
  57 
  58 LINTFLAGS +=    -x
  59 LINTFLAGS64 +=  -x
  60 
  61 CERRWARN +=     -_gcc=-Wno-uninitialized
  62 CERRWARN +=     -_gcc=-Wno-switch
  63 
  64 BLTDEFS =       msg.h
  65 BLTDATA =       msg.c
  66 BLTMESG =       $(SGSMSGDIR)/elfdump
  67 
  68 BLTFILES =      $(BLTDEFS) $(BLTDATA) $(BLTMESG)
  69 
  70 SGSMSGCOM =     ../common/elfdump.msg
  71 SGSMSGTARG =    $(SGSMSGCOM)
  72 SGSMSGALL =     $(SGSMSGCOM)
  73 SGSMSGFLAGS +=  -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n elfdump_msg
  74 
  75 SRCS =          $(COMOBJ:%.o=../common/%.c) \
  76                 $(COMOBJ32:%32.o=../common/%.c) \
  77                 $(TOOLOBJ:%.o=../../tools/common/%.c) $(BLTDATA)
  78 LINTSRCS =      $(SRCS) ../common/lintsup.c
  79 
  80 CLEANFILES +=   $(LINTOUTS) $(BLTFILES) gen_struct_layout


  42 BLTOBJ =        msg.o
  43 
  44 OBJS=           $(BLTOBJ) $(COMOBJ) $(COMOBJ32) $(COMOBJ64) $(TOOLOBJ)
  45 
  46 MAPFILE=        $(MAPFILE.NGB)
  47 MAPOPT=         $(MAPFILE:%=-M%)
  48 
  49 CPPFLAGS=       -I. -I../common -I../../include -I../../include/$(MACH) \
  50                 -I$(SRCBASE)/lib/libc/inc -I$(SRCBASE)/uts/$(ARCH)/sys \
  51                 $(CPPFLAGS.master) -I$(ELFCAP)
  52 LLDFLAGS =      $(VAR_ELFDUMP_LLDFLAGS)
  53 LLDFLAGS64 =    $(VAR_ELFDUMP_LLDFLAGS64)
  54 LDFLAGS +=      $(VERSREF) $(CC_USE_PROTO) $(MAPOPT) $(LLDFLAGS)
  55 LDLIBS +=       $(ELFLIBDIR) -lelf $(LDDBGLIBDIR) $(LDDBG_LIB) \
  56                     $(CONVLIBDIR) $(CONV_LIB)
  57 
  58 LINTFLAGS +=    -x
  59 LINTFLAGS64 +=  -x
  60 
  61 CERRWARN +=     -_gcc=-Wno-uninitialized

  62 
  63 BLTDEFS =       msg.h
  64 BLTDATA =       msg.c
  65 BLTMESG =       $(SGSMSGDIR)/elfdump
  66 
  67 BLTFILES =      $(BLTDEFS) $(BLTDATA) $(BLTMESG)
  68 
  69 SGSMSGCOM =     ../common/elfdump.msg
  70 SGSMSGTARG =    $(SGSMSGCOM)
  71 SGSMSGALL =     $(SGSMSGCOM)
  72 SGSMSGFLAGS +=  -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n elfdump_msg
  73 
  74 SRCS =          $(COMOBJ:%.o=../common/%.c) \
  75                 $(COMOBJ32:%32.o=../common/%.c) \
  76                 $(TOOLOBJ:%.o=../../tools/common/%.c) $(BLTDATA)
  77 LINTSRCS =      $(SRCS) ../common/lintsup.c
  78 
  79 CLEANFILES +=   $(LINTOUTS) $(BLTFILES) gen_struct_layout