Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5687233ybl; Tue, 10 Dec 2019 09:51:44 -0800 (PST) X-Google-Smtp-Source: APXvYqz8S9Q6gqviwVLb7RjaIqgwNSZl5niuk39kDEJoDAZu067YOitYiPdmiId81BHFO+QrqdPa X-Received: by 2002:a05:6808:7d9:: with SMTP id f25mr14177oij.139.1576000304325; Tue, 10 Dec 2019 09:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576000304; cv=none; d=google.com; s=arc-20160816; b=Sd6Yrxr4WN2IAIGPhm3SUuZbr0cxjXalf8tin9M72FinwQjpQaQ4VVTlu2dY0lbspM w4Q0peYiwKaKgMvMAATnAhlWmlI0FBUJkTOOPiPp/FnIkmkEZY5CaYUdxaiNImOGWhQn PSut3Zz43uMEpdma32BW48HaeQ0nFgMLhK0Ek6TycLv19Gi7n7Q3K54ZyHc7W9y2OgrH R3BYqXoKQm6l+lyt2LMJYQ8x9JM5HREn+lKe8MdsVOZsyYU6UHCXSWyckDaL0yPxNUXx bok4Y8sTps19ETi75pIMbJT9Y8io0Y/AirQS2eFB8OsFm6Q296ex76JdjbbZe+uS3Ihb JIlw== 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:mime-version :message-id:date:subject:cc:to:from; bh=Gl8wdP2EUp9HIKPXPYWQGeBPIE0AvYplATcxTNQp+FQ=; b=OOzAn11sox/D/nLzeZn+kGKsXha3fI4lL802htLYPxDHITZQ1iyIX4iMz3rn824C3y i9lIntW5+h3xYP3cROIVtWd4jiE4+NlR8NYn8D0iLbCQbiMu2mmCJKPqp9yAuA9GlbRr QiutMAIseVU4BRTMx1uygrgIb8oYqXqRBhFOb5ajAyFlvbYnQ9KeUqJ1SOhuTBtY3kre 5LLjn7R8EJIPMB587FQ1LcMGQ2ieuLe4zqMvcFKVvdDEVXbnWYcFJSzH5WZlPrXYPBEs uwcHv36vqiwXTZ5BSH64Wvs66XwCiprnDxn3kiAz766+Nt/l4t1aLahZhpHTN1n7yL7i 5Wmw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t195si2311887oih.209.2019.12.10.09.51.32; Tue, 10 Dec 2019 09:51:44 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727667AbfLJRuV (ORCPT + 99 others); Tue, 10 Dec 2019 12:50:21 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:45751 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727566AbfLJRuV (ORCPT ); Tue, 10 Dec 2019 12:50:21 -0500 Received: by mail-ed1-f67.google.com with SMTP id v28so16704701edw.12; Tue, 10 Dec 2019 09:50:19 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=Gl8wdP2EUp9HIKPXPYWQGeBPIE0AvYplATcxTNQp+FQ=; b=d3Ihjq2eYRXnJk1W8uQgeCA8+nU6QL9Yj5whBTl82ZuLbKs8mut9JzZnqVbg4ngu2i uJdo2wwQihLVjTqVloNbSwmwtRTfdXDiIaTh0c7Ivu6ddqSVOYESvVEuyhS+zTxDfi3i 8XIn2N8p5iMtC6d6j5/1Y4/B+DTHwJH/oGTH7wvgEGXi+ribVzPMAbrDjgnqdrGWKyKZ 2eLvSGMoKBnLrKDHgOC7VXKWRT+s8AHr+4TqmX72NmKsZBbA4LqcZVJyR7dmB5Rpa4cx ILNRX8Lmq26fkKZ/Q8vSA45WD4xTs2WP+pMbZRTkUPnRx29jDRRbykyMI2+Ku6lQ1dsN bgJA== X-Gm-Message-State: APjAAAVCB3BHdmYR2vBTLJigjDlFsMNJoQd8jsFzZTiARmJCVjnk3rQm COQwiMXH+g9Cb2KC7sM5BjA= X-Received: by 2002:a50:ec1a:: with SMTP id g26mr40376626edr.164.1576000219268; Tue, 10 Dec 2019 09:50:19 -0800 (PST) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id d20sm111782ejc.0.2019.12.10.09.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 09:50:18 -0800 (PST) From: Denis Efremov To: Ralf Baechle Cc: Denis Efremov , Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: disable kcov instrumentation in compressed dir Date: Tue, 10 Dec 2019 20:50:02 +0300 Message-Id: <20191210175002.981-1-efremov@linux.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the compilation with CONFIG_KCOV enabled. Otherwise linking fails with: ld: arch/mips/boot/compressed/piggy.o: in function `main': dummy.c:(.text.startup+0x8): undefined reference to `__sanitizer_cov_...' make[1]: *** [arch/mips/boot/compressed/Makefile:101: vmlinuz] Error 1 Signed-off-by: Denis Efremov --- arch/mips/boot/compressed/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile index 172801ed35b8..d859f079b771 100644 --- a/arch/mips/boot/compressed/Makefile +++ b/arch/mips/boot/compressed/Makefile @@ -29,6 +29,9 @@ KBUILD_AFLAGS := $(KBUILD_AFLAGS) -D__ASSEMBLY__ \ -DBOOT_HEAP_SIZE=$(BOOT_HEAP_SIZE) \ -DKERNEL_ENTRY=$(VMLINUX_ENTRY_ADDRESS) +# Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. +KCOV_INSTRUMENT := n + # decompressor objects (linked with vmlinuz) vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o -- 2.20.1