Received: by 10.213.65.68 with SMTP id h4csp2433396imn; Thu, 5 Apr 2018 15:07:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx48G/9dAIbYElkSPhhUMxjRhfXWXfsCndo4bq1h3oTGOM2V7MXebvWYsJuqvIFc2sbSOPNYK X-Received: by 2002:a17:902:aa48:: with SMTP id c8-v6mr23940459plr.361.1522966046726; Thu, 05 Apr 2018 15:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522966046; cv=none; d=google.com; s=arc-20160816; b=bqYfMPPN/KRtEEKEPi9NV+XyjV0VNE+IoTbF5eJZR7NeDBwoZWcBw/DgxmAqLP6tXm 1wisTa845XUd/okZVh+bfJJpk19AvFAZOsxCx98BYo8qPt6+JXaHh6Ioca/OEhAm5aDS z92L4Yd8cxiiRAh1FU69bxWO2ULkaq1hRFWYaJ9+gYwCxf5wwAO89H6D6GWD7X//YxTt zRPMBq8i1zdBXVP4M12cf1sYTI1EM0k00grz8G1ikVgWC9m2LYlEJsGwNMD5q7JFcWa+ nx77vdqxrA1L0v0dkdrKXPiy9hX228ZiZUfeR1cRR/nVDWMsaiHv9VuuIwMQ3BOOttmH +zwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=F6uClup8XmbdiCcyunq0RmwaGpVfhByyRNoKPQgIJac=; b=D78kwzFyrAjXT1Tms95cNuIOiLstlYOX2iCy7GsRFqDljJNmCXIhVi7gVfo+CHeFF2 Zt1XzMYG9I/itqn96c3+eEYtmYn5+LiHvUFy2Cb35shirIcHRPYLYk8hpyJifpnqwVWs moDmlMjeO3i34xHeMuNMyWKtRlvG9ngZNPHhy2BoAlWtKyD1UQr7LOQ01Mi4a28zIZCG e7LiXw2imWZgxbJ+AcVJRfG8ZBOiFDBMJJgN3AOFQW/9ZvZr5H0f2+7aWx7TNIkd8ujf aS0uVVac1gVGiNOo9MWA2P+4q48Sdf3GMflnDFkyQ/l88hYVPhr6QM/+LniRNqwL/k9M pcXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2-v6si6785418pls.379.2018.04.05.15.06.41; Thu, 05 Apr 2018 15:07:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752553AbeDEWB1 (ORCPT + 99 others); Thu, 5 Apr 2018 18:01:27 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:39284 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752425AbeDEWB0 (ORCPT ); Thu, 5 Apr 2018 18:01:26 -0400 Received: by mail-pl0-f65.google.com with SMTP id s24-v6so21207496plq.6 for ; Thu, 05 Apr 2018 15:01:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=F6uClup8XmbdiCcyunq0RmwaGpVfhByyRNoKPQgIJac=; b=XDooA9YeJz2Khipg1aa3fvpQ8uEhKG5YKJdCXhAXVw5b9hApdyKtcwASjLIBuS+w79 C3HNaGm040ijAAqyk2N1/dJQrHgGh95i5UP4jNHFqujsvgAVLaEU0X9YF2DPOK6qiuzt jNK+7UG3gj65Ht8RYXw0KPs26DU3delOVLvOudUA3vl1Vw7n6h1FgIoWM+T5D6nu2j46 W1K7s9BPqP8IqSzWOqe9HLANc8u2+8jBeFc14PKOnXkemtSy22ZMYnEGro2Y8LpGP5gt lymp7tiuYxvJZ1KZzUkmdpOWe2fUNfhQZcW4ODp1EX1ItR+hpO4k2ourS6/YzT4n++1c CZfg== X-Gm-Message-State: AElRT7ESFGJonqtMOXfWP7d3ZGnR132iO5viGViND7z4nNcETKStxX0E mr+5g44sBZyC1O4c/7TRavyzVSfvcOk= X-Received: by 10.99.3.144 with SMTP id 138mr16107085pgd.364.1522965685533; Thu, 05 Apr 2018 15:01:25 -0700 (PDT) Received: from localhost.localdomain ([2601:602:9802:a8dc::19fb]) by smtp.gmail.com with ESMTPSA id b5sm16471994pfc.87.2018.04.05.15.01.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Apr 2018 15:01:24 -0700 (PDT) Subject: Re: [PATCH 2/3] objtool: Support HOSTCFLAGS and HOSTLDFLAGS To: Masahiro Yamada Cc: Michal Marek , Josh Poimboeuf , Linux Kbuild mailing list , Linux Kernel Mailing List References: <20180329004805.7278-1-labbott@redhat.com> <20180329004805.7278-3-labbott@redhat.com> From: Laura Abbott Message-ID: Date: Thu, 5 Apr 2018 15:01:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/04/2018 09:42 PM, Masahiro Yamada wrote: > 2018-03-29 9:48 GMT+09:00 Laura Abbott : >> It may be useful to compile host programs with different flags (e.g. >> hardening). Ensure that objtool picks up the appropriate flags. >> >> Signed-off-by: Laura Abbott >> --- > > > I saw some similar patches before. > > I thought they are fixing this way > https://patchwork.kernel.org/patch/10251259/ > > but, I am not tacking the progress. > > > That looks like a different issue since it's still not going to pick up the HOST{C,LD}FLAGS. > >> tools/objtool/Makefile | 5 +++-- >> 1 file changed, 3 insertions(+), 2 deletions(-) >> >> diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile >> index e6acc281dd37..0ff3bcac1ca9 100644 >> --- a/tools/objtool/Makefile >> +++ b/tools/objtool/Makefile >> @@ -31,8 +31,9 @@ INCLUDES := -I$(srctree)/tools/include \ >> -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \ >> -I$(srctree)/tools/objtool/arch/$(ARCH)/include >> WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed >> -CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) >> -LDFLAGS += -lelf $(LIBSUBCMD) >> +CFLAGS += -Wall -Werror $(WARNINGS) $(HOSTCFLAGS) -fomit-frame-pointer -O2 -g \ >> + $(INCLUDES) >> +LDFLAGS += -lelf $(LIBSUBCMD) $(HOSTLDFLAGS) >> >> # Allow old libelf to be used: >> elfshdr := $(shell echo '\#include ' | $(CC) $(CFLAGS) -x c -E - | grep elf_getshdr) >> -- >> 2.16.2 >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > >