Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936525AbcJXRtD (ORCPT ); Mon, 24 Oct 2016 13:49:03 -0400 Received: from smtprelay0236.hostedemail.com ([216.40.44.236]:47031 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933054AbcJXRtB (ORCPT ); Mon, 24 Oct 2016 13:49:01 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3870:3871:4321:5007:6120:8660:10004:10400:10848:11026:11473:11658:11914:12043:12679:12740:12760:13069:13148:13161:13229:13230:13311:13357:13439:14513:14659:14721:21080:21451:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: crook30_3118030a48733 X-Filterd-Recvd-Size: 2801 Message-ID: <1477331336.1984.6.camel@perches.com> Subject: Re: [RFC PATCH] kbuild: add -fno-PIE From: Joe Perches To: Sven Joachim , Sebastian Andrzej Siewior Cc: Adam Borowski , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, ben@decadent.org.uk Date: Mon, 24 Oct 2016 10:48:56 -0700 In-Reply-To: <874m41mz4h.fsf@turtle.gmx.de> References: <20161021111600.9417-1-bigeasy@linutronix.de> <20161021212127.GA32611@angband.pl> <87eg37niky.fsf@turtle.gmx.de> <1477250598.3561.4.camel@perches.com> <8760oinqly.fsf@turtle.gmx.de> <20161024074332.uomcxyhqo6aq7vxk@linutronix.de> <874m41mz4h.fsf@turtle.gmx.de> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.1-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1693 Lines: 31 On Mon, 2016-10-24 at 19:32 +0200, Sven Joachim wrote: (in the attachment) > +KBUILD_CFLAGS += $(call cc-option,-fno-pie,) trivia: The trailing comma is not necessary though the Makefile is a bit inconsistent about this. $ git grep "KBUILD_CFLAGS.*call cc-option" Makefile Makefile:KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) Makefile:KBUILD_CFLAGS += $(call cc-option,-ffunction-sections,) Makefile:KBUILD_CFLAGS += $(call cc-option,-fdata-sections,) Makefile:KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) Makefile:KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks,) \ Makefile:KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN}) Makefile:KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) Makefile:KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) Makefile:KBUILD_CFLAGS += $(call cc-option, -fno-var-tracking-assignments) Makefile:KBUILD_CFLAGS += $(call cc-option, -gsplit-dwarf, -g) Makefile:KBUILD_CFLAGS += $(call cc-option, -gdwarf-4,) Makefile:KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \ Makefile:KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once) Makefile:KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) Makefile:KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow) Makefile:KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) Makefile:KBUILD_CFLAGS += $(call cc-option,-Werror=implicit-int) Makefile:KBUILD_CFLAGS += $(call cc-option,-Werror=strict-prototypes) Makefile:KBUILD_CFLAGS += $(call cc-option,-Werror=date-time) Makefile:KBUILD_CFLAGS += $(call cc-option,-Werror=incompatible-pointer-types)