From patchwork Fri Nov 3 17:11:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10040893 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C295B602D8 for ; Fri, 3 Nov 2017 17:23:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9BC32971E for ; Fri, 3 Nov 2017 17:23:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E9392974D; Fri, 3 Nov 2017 17:23:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3654C2971E for ; Fri, 3 Nov 2017 17:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=y5TgWDPuVVSmwQ3Utb7xUArBFeqatnFEtzHCYOonJUk=; b=hckKeu3eLO0/1GwqsVVzfYEz6L H6I1M5Cmy+Cdpb0fc+wKUQgEws2nZluXKHvEKNuWu6HB0D0vfyEmdQRy/38zpqhLRGq+Y+ZQ3YvzP QKvp+oJlJ0Ar1tgTb1QCCz4H3h0Z72jqZHpF/G/1J6wS61cHA+HC4q90V3HT9b9d/X7DmPkQHAhYG dskgj6kIOsZm4D9JBdKap/4+pBHephp1DhBt0eMWIEfGhlb6w7NZjYn0nirCvJj0+2pblPBsAF+/K ESuOYmFhzFaenV+o2/1Dr46RKV5rnLvDZHtokU8M0ieaUvNEDCIBeRrnZOHi6Tb6aGJx8Nl15Il4F DLFIyA1g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eAfgm-0001Wd-J0; Fri, 03 Nov 2017 17:23:28 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAff4-0007HN-10 for linux-arm-kernel@bombadil.infradead.org; Fri, 03 Nov 2017 17:21:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=74c6Ma2D6WkhlkUUysiWTCppoZYXTiwYdBlEIFkqN1A=; b=OSP+UyowUEEjTJ2S02GIuJuj2 ikez1UOiM7yt8JJH2ipSjEnUAqKPLq/iOpVu/uhzqbJD+JzCpEHlBlRhuJgqy6epbEyYx3DKxxTsL Rcgyj77+wGX6b3CMiWwlzhnIxj0FtAbvQ9vipy9akJVw1WVteHfTvyE2iGxNMgGcI/T6CKW9RDFfK IcR8/6yxltdQjL5o6Idkns8Gy7MLmNXvKP4M4hM2WTHvt4tDiHlDEmKVNvum0mJSo5Yv3UrnU3d5d bCH76J04ZLFduxvOQmbLsr448RDe5chENKA0SxkmOtpoSFMHgQiSFAOTaLB8UEchlxi2d2H+4RFuz SHB4guYmQ==; Received: from mail-io0-x243.google.com ([2607:f8b0:4001:c06::243]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfWi-0003sW-NN for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 17:13:07 +0000 Received: by mail-io0-x243.google.com with SMTP id e89so7704372ioi.11 for ; Fri, 03 Nov 2017 10:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=74c6Ma2D6WkhlkUUysiWTCppoZYXTiwYdBlEIFkqN1A=; b=l+JD3ylu+H/xgwpSn7nq6GG6jkyCKDREVmFbZJO2zluh9VQvIZmmNs3T/56GMtE9Zu yA8IAvGFPLhO0LJlRd77jfdNCPhVAb5Kb2QBvMe3IOghHBFYIt+2FigmhcImg72c7qnV e/vvhwU5VWj4lDXBhU6erxoXzW2IVvBxuaszd5VMDzdh8MNSDZbjkBjOnY7T5buEaif2 9z8bVa73rjpPX81dgXVOL7gvvp+i59bH2RB9oxRHOPW3euMZkRxJZYa2WEnvP6qGL3ei Q6qswh54w5CvW8iSpAkmgas3KfN80yzC43AspRqgkEhEYtITbSk++pkZEbLF7I4v3ZYz oGLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=74c6Ma2D6WkhlkUUysiWTCppoZYXTiwYdBlEIFkqN1A=; b=JRaRI1LsKbR9Qd2JU2itiOcDPxgvshrkiz/T87BB0kMzEUzfI+YT0v4UN1Y3jc59kX pqYALLIX9BLTqQzYfd2Mp5krcAnYsq9ydjGPAowFHKRkVtEx67VKcc+Kj7FgaW8iL4UN aGGM7+3HrWrxd2ZeZPJES5O84j67LgoqltW4TwcR7OXgkbHoon+YZXdb4ZThlRgpvEi9 II77jXfmOpifptWkLjx5FSDkr3uK0dJDj/EJfevlZ0PMS/qjudu7BZlMbE0Yt54Tw/5d nwjnKH2Vu8MoYVq81hYSTKUFBJ0pFpVYw6WSmQ40drjTmHh0+zO9XhNP54zZtgbq2Vxi 19gQ== X-Gm-Message-State: AJaThX4KSknTr+2pS/zHhtrsCRMiyRLfzjDTR+H1NevA68yyDrSvL1TL 9DSvJvEFymmyd+goGS3Az3ywhw== X-Google-Smtp-Source: ABhQp+S6GqIWtBFUtaOQZ43O/XJhQkuhT3kCWt90WGYwUu0aGmWJqty95UAGIdGnjHvnsH4xUNpohw== X-Received: by 10.107.170.29 with SMTP id t29mr9861465ioe.73.1509729163854; Fri, 03 Nov 2017 10:12:43 -0700 (PDT) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id d186sm1370787itd.38.2017.11.03.10.12.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 10:12:42 -0700 (PDT) From: Sami Tolvanen To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/15] scripts/mod: disable LTO for empty.c Date: Fri, 3 Nov 2017 10:11:49 -0700 Message-Id: <20171103171203.107569-6-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.403.gc27cc4dac6-goog In-Reply-To: <20171103171203.107569-1-samitolvanen@google.com> References: <20171103171203.107569-1-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171103_171304_863222_111B79F2 X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sami Tolvanen , Matthias Kaehlcke , Nick Desaulniers , Kees Cook , Greg Hackmann MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With CONFIG_CLANG_LTO, 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 --- scripts/mod/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile index 42c5d50f2bcc..e014b2fdd069 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_empty.o += $(DISABLE_LTO) hostprogs-y := modpost mk_elfconfig always := $(hostprogs-y) empty.o