From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161561AbeEXVtp (ORCPT ); Thu, 24 May 2018 17:49:45 -0400 Received: from terminus.zytor.com ([198.137.202.136]:42261 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966099AbeEXVtl (ORCPT ); Thu, 24 May 2018 17:49:41 -0400 Subject: Re: [clang] stack protector and f1f029c7bf To: Nick Desaulniers Cc: Alistair Strachan , Manoj Gupta , Matthias Kaehlcke , Greg Hackmann , sedat.dilek@gmail.com, tstellar@redhat.com, LKML , Kees Cook References: From: "H. Peter Anvin" Message-ID: <40166a47-749e-e6a8-41fa-e5dc0defaaab@zytor.com> Date: Thu, 24 May 2018 14:49:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/24/18 14:12, Nick Desaulniers wrote: > > Looks like those builtins got added to GCC around the 4.9 timeframe: > https://godbolt.org/g/9VS2E9 > > Problematically, it seems that GCC does not have __has_builtin to do > feature detection: > https://clang.llvm.org/docs/LanguageExtensions.html#feature-checking-macros > https://godbolt.org/g/oku8ux > We have support in the kernel build system for doing that, though. I just added a concurring opinion to the gcc bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970