From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,TRACKER_ID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89650C73C53 for ; Tue, 9 Jul 2019 17:25:11 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 45BFD214AF for ; Tue, 9 Jul 2019 17:25:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="P5UgJO5J" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 45BFD214AF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92) (envelope-from ) id 1hktrA-000389-Qf; Tue, 09 Jul 2019 13:24:44 -0400 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1hktr8-000382-L3 for kernelnewbies@kernelnewbies.org; Tue, 09 Jul 2019 13:24:42 -0400 Received: by mail-oi1-x22d.google.com with SMTP id w79so15971612oif.10 for ; Tue, 09 Jul 2019 10:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GN2AVpKmof0Jewc3hikqAWd0q5t3B1jdpxBoFHwXtOM=; b=P5UgJO5JOsLOSHI8D73XgZqnLzc3JCkiKc98cZ/qPFoSxBca+p5Ndt+Jsd/HH8WFls 9u9RQ+UNqJS0HHbumxeE6dBF/YubCbBz7ppMCCvGTb/E45tRSbhGw9SEbUlmkHfnJDvB JmzgrLE42YJoGFLym07kguwRElYY9xZVX/A3pEfswu8nkVbmTvX3OV4paSnNYrj7NTIp 4WUCe13gRT83oll1NzVfHNIfdWB7ca0H73msaRtba0ff/JICwaEJbl6nQErVJH0n+t0c E/jjEyyqS7CXeBD2bFaw/BRVkUtPKrQg7xEo6twYs5SWmK1ud3/YiPHTY1lJRVTQ39iL Gi6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GN2AVpKmof0Jewc3hikqAWd0q5t3B1jdpxBoFHwXtOM=; b=blQ6PFX9uDuyekRLkBS5LUzSf5/I6/n5pBL/j4dSiw3NoN1rh+H9xZ411SGIO6fOF+ sEQltaOsvNOnWLE+mOWFLgpGGMadxPnOMUGGupSLRnolkv9rAWrGp2CSWM9unC5FqDqd 6W4tG5qShM6qSI9lQK1gUgGjTRTKv959Wq5zoP7cYSqYxnzOo3GGeqSsUfJ0kgBc0sRq mOqorc77RqPYGnNYnMhWyQdpAoSOtELb6tH34mQy5Gj+chSmLnhff9QiaU7xg3/YfM41 WJ7VwUPK9sFf4peDAGw5g1i4YupNj8T7wLQ7mbBjZT7fdMQzDZ+9RskhBFqjW736lbHy 1a9g== X-Gm-Message-State: APjAAAUzpyU1E6gTzfuw8m0P6HlMkv3ndmBZF87YqyPQFeDsF1YpOmc5 u5xmHVfKVXVirHSs3ZwL/fHnoKuGzvi4wGWiDgBEjHnUidM= X-Google-Smtp-Source: APXvYqxb4jUFUG9n80yXov+UqYvPDr6GdegGBXS3tNsr0rDEMZK5/A++6uqFuEKDF9r2+8AXJEDIEoW0tWCkE8G1RBA= X-Received: by 2002:aca:494c:: with SMTP id w73mr694200oia.31.1562693079003; Tue, 09 Jul 2019 10:24:39 -0700 (PDT) MIME-Version: 1.0 From: Muni Sekhar Date: Tue, 9 Jul 2019 22:54:27 +0530 Message-ID: Subject: CONFIG_CC_STACKPROTECTOR_STRONG To: kernelnewbies , linux-kernel@vger.kernel.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3384817746070984433==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============3384817746070984433== Content-Type: multipart/alternative; boundary="000000000000ddf62b058d42d529" --000000000000ddf62b058d42d529 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi All, My Kernel is built with the following options: CONFIG_CC_STACKPROTECTOR=3Dy CONFIG_CC_STACKPROTECTOR_STRONG=3Dy We use out-of-tree kernel modules in our project and I need to measure the performance of it by using a bit older gcc version 4.8.5. I can build the modules with gcc above 5 version, but when I try to use gcc version 4.8.5 I=E2=80=99m getting the following error: Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_STRONG option, but how to instruct gcc to ignore this one? In runtime, is it possible to instruct kernel to ignore =E2=80=9CCONFIG_CC_STACKPROTECTOR_STRONG=3Dy=E2=80=9D (without building the= kernel) by using sysctl or any other method? Any help is appreciated. --=20 Thanks, Sekhar --000000000000ddf62b058d42d529 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi All,


My Kernel is built with the following o= ptions:

=C2=A0

CONFIG_CC_STACKPROTECTOR=3Dy

CONFIG_CC_STACKPROTECTOR_STRONG=3Dy

=C2=A0

=C2=A0

We use out-of-tree kernel modules in our project and I need to measure the performance of it by using a bit older gcc version 4.8.5.

=C2=A0

I can build the modules with gcc above 5 version, but when I try to use gcc version 4.8.5 I=E2=80=99m getting the following error:

=C2=A0

Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler

=C2=A0

So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_STRON= G option, but how to instruct gcc to ignore this one?

=C2=A0

In runtime, is it possible to in= struct kernel to ignore =E2=80=9CCONFIG_CC_STACKPROTECTOR_STRONG=3Dy=E2=80= =9D (without building the kernel) by using sysctl or any other method?


Any help is appreciated.



--
Thanks,
Sekhar<= /div>
--000000000000ddf62b058d42d529-- --===============3384817746070984433== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============3384817746070984433==--