Print this page
11866 Use -fstack-protector-strong when available
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: John Levon <john.levon@joyent.com>
Change-Id: Iaffe3e8275a3e6a06cc430743cd6539ead38f736

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/qede/Makefile
          +++ new/usr/src/uts/intel/qede/Makefile
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  # Common Development and Distribution License ("CDDL"), version 1.0.
   4    4  # You may only use this file in accordance with the terms of version
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13      -# Copyright (c) 2018, Joyent, Inc.
       13 +# Copyright 2019 Joyent, Inc.
  14   14  #
  15   15  
  16   16  UTSBASE = ../..
  17   17  
  18   18  MODULE          = qede
  19   19  OBJECTS         = $(QEDE_OBJS:%=$(OBJS_DIR)/%) $(QEDE_GEN_OBJS:%=$(OBJS_DIR)/%)
  20   20  ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  21   21  CONF_SRCDIR     = $(UTSBASE)/common/io/qede
  22   22  
  23   23  include $(UTSBASE)/intel/Makefile.intel
↓ open down ↓ 23 lines elided ↑ open up ↑
  47   47  #
  48   48  CERRWARN        += -_gcc=-Wno-unused-variable
  49   49  CERRWARN        += -_gcc=-Wno-unused-function
  50   50  
  51   51  # 3rd party module
  52   52  SMOFF += all_func_returns,indenting,no_if_block,deref_check,testing_index_after_use
  53   53  
  54   54  # real bug in qede_multicast()
  55   55  $(OBJS_DIR)/qede_gld.o := SMOFF += assign_vs_compare
  56   56  
       57 +#
       58 +# Unfortunately the default use of -fstack-protector-strong breaks the
       59 +# qede module. For the time being limit its use of stack-protector to
       60 +# the basic form (-fstack-protector).
       61 +#
       62 +STACKPROTECT=basic
       63 +
  57   64  ALL_TARGET      = $(BINARY) $(CONFMOD)
  58   65  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  59   66  
  60   67  LDFLAGS         += -dy -N misc/mac
  61   68  
  62   69  .KEEP_STATE:
  63   70  
  64   71  def:            $(DEF_DEPS)
  65   72  
  66   73  all:            $(ALL_DEPS)
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX