Print this page
11787 Kernel needs to be built with retpolines
11788 Kernel needs to generally use RSB stuffing
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: John Levon <john.levon@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/Makefile.rules
          +++ new/usr/src/uts/intel/Makefile.rules
↓ open down ↓ 286 lines elided ↑ open up ↑
 287  287  
 288  288  $(OBJS_DIR)/%.o:        $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.c
 289  289          $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 290  290          $(CTFCONVERT_O)
 291  291  
 292  292  #
 293  293  # _DBOOT indicates that krtld is called from a dboot ELF section
 294  294  #
 295  295  $(OBJS_DIR)/kobj.o              := CPPFLAGS += -D_DBOOT
 296  296  
      297 +$(DBOOT_OBJS_DIR)/%.o:          $(UTSBASE)/intel/ia32/ml/%.s
      298 +        $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
      299 +
      300 +
 297  301  $(OBJS_DIR)/%.o:        $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.s
 298  302          $(COMPILE.s) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 299  303  
 300  304  $(OBJS_DIR)/%.o:        $(SRC)/common/util/$(SUBARCH_DIR)/%.c
 301  305          $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 302  306          $(CTFCONVERT_O)
 303  307  
 304  308  
 305  309  #
 306  310  #       Section 1b: Lint `object' build rules.
↓ open down ↓ 182 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX