Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp673388pxb; Wed, 18 Nov 2020 14:11:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwg5B7tAAAz7VrFjlU7k4TJWvr/sgcpqXGo30SjJ6Gx3eBErdOYkE7ZlnEpaFD8LqaV7kPh X-Received: by 2002:a17:906:8812:: with SMTP id zh18mr24697230ejb.361.1605737485070; Wed, 18 Nov 2020 14:11:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605737485; cv=none; d=google.com; s=arc-20160816; b=SlIOHMrY1RZa0V9VYpzxpw9kak6rky8MHl2fXQEH+wPxAAmXhKjrGEfp7q8dJ3RUQG bYaSJ8Vp07c5dm02lkCIHd+y1I9egj7zb2Tz/ceaei5Ns6ykahwyo1t0SDu0M5bo5dta /J0r/oUv6KiGt1rBahiMvt8N3uBh+UhyMRClepEQK42D1ZrALQyalaTuCP0L5Lfq3KTo Lo1bKrdOKpK6wtthnq1N8ebomKrU2z8MugSpvDZS+sl3QilBzXflIJdPh6Bav1/bCY2y rbf18JhPI2tHmlu/fXYWvXeWLnfQ2E1JsInHZVNaEZo0G7Vsb0gsyYv3P3AqilrKRKFq 3NIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=ybG+vgy2nM0cZESjHkdkrOB9uboR6Bigv/FKTPhrj4k=; b=Oz+5DRbZIkyM+V1MHqhdOzLcRgmjEPHdQucvp1HyYTbB5I792JBDsgQVEURTIv+Oo7 7NTtz0a8Eby1pRqX9jWtGeGFaOL60qxfhYvdyCxpbzTe8pJT72QWwzkvuRpPgTVvI6FI QgnBfkhh8+8NHkOb1BtJjhwKZqLUR9X6ub48XBYGQOwY5PmmbViuyl+4SI3fc6YYKiDJ osW8UjVE799bkFBYkPXCIQZXNLkvUFG+c0QK04/Qgw+IhvH7S15ckxk7iB98Wb/PZOaO +a/+Pa5OCjxEhWmxlwFeESdepFveCCPsFuRCJNgSsGRioOMfRDjppLxphfyCzvNu2v0L wfug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hIIcn4Bp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si19897101edu.343.2020.11.18.14.11.02; Wed, 18 Nov 2020 14:11:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hIIcn4Bp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727454AbgKRWIA (ORCPT + 99 others); Wed, 18 Nov 2020 17:08:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727440AbgKRWH7 (ORCPT ); Wed, 18 Nov 2020 17:07:59 -0500 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4E43C061A4D for ; Wed, 18 Nov 2020 14:07:58 -0800 (PST) Received: by mail-qv1-xf49.google.com with SMTP id k5so2507093qvu.10 for ; Wed, 18 Nov 2020 14:07:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=ybG+vgy2nM0cZESjHkdkrOB9uboR6Bigv/FKTPhrj4k=; b=hIIcn4BpUGto4r6NHqbLnzUmUXfubNWPf/6Zv3GZRtWFHTU5uAvFN3tQzxc1WSCFCE QInEMAz5D1L8ymumteFJDjH04mB3gIw3xTPG+sIitd8fhUMxyqQPbPxfi9jbz4SdCsY5 IMaYwzp6CiX4uEC0/+NopWwTLoT+Hs+OIt2rLskAikpv2CYx+NW+NMMv+UZMLb0cf3To 3Gj3U/0KWBUaSX2TChjkL5H3cDumu19oheeYzVpian9YZ/DVNUcRVSEjbwAUTLGxGpKv acQ+xEREurokEV7Kzv9fVI7s3GeTBazq9YMWsdRv9DQFq4TQ25fd7ZWZErFnH/R86xe9 IAwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=ybG+vgy2nM0cZESjHkdkrOB9uboR6Bigv/FKTPhrj4k=; b=H/xJrzZhJ1j9GfHkJ3dDrGVEsAEnYJ4XqCyGODWVEtpTRhs7XeYPtYVwcP9GLwqlhz NLQBKBaO62g6EGzDdXh2B3GtO76dR+zf3rrnp1SXai5Hhp5gCxMfiEXFVrUfsvQvKjkD oD0N5Sq5GUz9ng/grwvgEUunAEF9FvTtkh5OF7ryly89gn7jQthIWg9QpOR1GmgESfuq 2w1JdgkyzgKRKqnv7Z7hE9P1as6dI/4iSo2SdzN0VeCdfziVB8wt3F1PecCwwC2mIHHR EvspceUA6vh0p23wnNlsca82vE03BbaOMut5k0hsYBf280NC2auWJ9zZHPqZsFUyJJ2f 5LdQ== X-Gm-Message-State: AOAM532Csbr5SKXnpdxji/0jB+CwT2aZNrrZw8559ymgdfrTPwmC7zDr 7JQJqGjR51FDUfokYBdOjrriqiJtgNySZNqoGCA= Sender: "samitolvanen via sendgmr" X-Received: from samitolvanen1.mtv.corp.google.com ([2620:15c:201:2:f693:9fff:fef4:1b6d]) (user=samitolvanen job=sendgmr) by 2002:a05:6214:32f:: with SMTP id j15mr7580348qvu.35.1605737277806; Wed, 18 Nov 2020 14:07:57 -0800 (PST) Date: Wed, 18 Nov 2020 14:07:25 -0800 In-Reply-To: <20201118220731.925424-1-samitolvanen@google.com> Message-Id: <20201118220731.925424-12-samitolvanen@google.com> Mime-Version: 1.0 References: <20201118220731.925424-1-samitolvanen@google.com> X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [PATCH v7 11/17] scripts/mod: disable LTO for empty.c From: Sami Tolvanen To: Masahiro Yamada , Steven Rostedt , Will Deacon Cc: Josh Poimboeuf , Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With CONFIG_LTO_CLANG, clang generates LLVM IR instead of ELF object files. As empty.o is used for probing target properties, disable LTO for it to produce an object file instead. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- scripts/mod/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile index 78071681d924..c9e38ad937fd 100644 --- a/scripts/mod/Makefile +++ b/scripts/mod/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 OBJECT_FILES_NON_STANDARD := y +CFLAGS_REMOVE_empty.o += $(CC_FLAGS_LTO) hostprogs-always-y += modpost mk_elfconfig always-y += empty.o -- 2.29.2.299.gdc1121823c-goog