From owner-freebsd-hackers@freebsd.org Sat May 5 10:38:40 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 05518FA97FF; Sat, 5 May 2018 10:38:40 +0000 (UTC) (envelope-from m.bryn1u@gmail.com) Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6DC8B7F888; Sat, 5 May 2018 10:38:39 +0000 (UTC) (envelope-from m.bryn1u@gmail.com) Received: by mail-lf0-x243.google.com with SMTP id o123-v6so34286121lfe.8; Sat, 05 May 2018 03:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6IkhIoWTSl1S2twi3R9ZVjTEpeN9sld5u0Fc253lZQ4=; b=Ys7Lc3ifPnXIIUjYeEQ8QOmjIEifFgBHSWUbISvdmLeoujlaqSIrvj7jD6PmfvCtPS BlutP7srCmT5QS65wLBezES8FRYhTX3YPug9MlbrBnehTRiWft5AvuiZiD4s9dTFlCFk inc7ZQER0Z28ZGi1UZ/QBk3VGpOshPbjmNQknfR168K2kXseNEiqYjtIjSVJF4N+k3VW UatvgG+YNyQglwS63OW3v5BevHWImAxH+l90Pa0DhN9Jensqbo5dTWpUrm+uXEv39/sU OQ1htzloqzjD9Z1PU1cc7wHSeH8dEMoXmXUieuOcLErSAXIfa/yXEfG/dt47VXmhi7ZD 8FQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6IkhIoWTSl1S2twi3R9ZVjTEpeN9sld5u0Fc253lZQ4=; b=Q4d/88ruRZtnowrKjb+KAMlOL46TbKLE52V+KKOI1Zr5XTH546bfHWLDTAbciACGnv 3qnPpU0PkFbOaJK0ev7aCE6pJPxkpYMlhdUQLjG6HiVn/4uZdE6S1VBmt48WZgDodBRQ 7bBwgtstoAZFiRGnHgxZY2eK5E06TUB7O3tqXhH7I0RBgEV7rY8mFCKaJhEp5MetcKiv qxc6u7+n4+vt2UvgOY0h+O7WewOu5QrFcK2WWl4jujbDjyRfLkcLGPJOz/GQDcu7PjFh wF+CrA8/U+YLfRN1V9yUQSaYDMAOhF2Q9sd6bZYGqWlkYD/J61S1yU/zhkGOlebXDxws yW/Q== X-Gm-Message-State: ALQs6tAMmwxjM5UqUvRpdUaDZYwCbQxhwrBcWwG26l1AN/AimpaFlmLs jVH1RckQFqjTK/H02Kl3+GKa4Mix9z50cZUDpTE= X-Google-Smtp-Source: AB8JxZrq1ldNBAjBWLVgJCQn48cwnCUcgBWYZ5rwPn6DLhLsKDXXxKL5q8F3y8cI/tXVdfclxhNmkwbW1MxdGDdfxv8= X-Received: by 2002:a2e:2a45:: with SMTP id q66-v6mr15085588ljq.40.1525516718062; Sat, 05 May 2018 03:38:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.71.139 with HTTP; Sat, 5 May 2018 03:38:37 -0700 (PDT) In-Reply-To: <20180505035931.33120d74@gmail.com> References: <20180505035931.33120d74@gmail.com> From: bryn1u85 Date: Sat, 5 May 2018 12:38:37 +0200 Message-ID: Subject: Re: SSP_CFLAGS for kernel To: Rozhuk Ivan Cc: freebsd-current@freebsd.org, FreeBSD Hackers , bdrewery@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2018 10:38:40 -0000 Hey, Don't touch src.conf Entry for make.conf should looks like below: WITH_SSP_PORTS=YES SSP_CFLAGS=-fstack-protector-all SSP_CXXFLAGS=-fstack-protector-all It's working for me. 2018-05-05 2:59 GMT+02:00 Rozhuk Ivan : > Hi! > > I set: > > /etc/src.conf: > WITH_SSP= > > /etc/make.conf: > SSP_CFLAGS=-fstack-protector-all > WITH_SSP_PORTS=yes > > > But in /usr/src/sys/conf/kern.mk: > > ... > # > # GCC SSP support > # > .if ${MK_SSP} != "no" && \ > ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" > CFLAGS+= -fstack-protector > .endif > ... > > > Is there should be some thing like in /usr/src/share/mk/bsd.sys.mk: > > SSP_CFLAGS?= -fstack-protector > CFLAGS+= ${SSP_CFLAGS} > > ??? > > > PS: /usr/ports/UPDATING > "The default SSP_CLFAGS is -fstack-protector, but -fstack-protector-all" > should be: > "The default SSP_CFLAGS is -fstack-protector, but -fstack-protector-all" > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >