Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5756143ybl; Tue, 10 Dec 2019 11:00:05 -0800 (PST) X-Google-Smtp-Source: APXvYqw22Diyw1HP2OFANnL+IOSeI3rAS1YybUMDwexft6JqrG0qYchEXm/kxuL4XQU4Ly6jBuoS X-Received: by 2002:aca:ea46:: with SMTP id i67mr260481oih.149.1576004405120; Tue, 10 Dec 2019 11:00:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576004405; cv=none; d=google.com; s=arc-20160816; b=gBqH5c16uiQqkuSLFPbkYkOdqltiY5EwY1AWGxOJHg5ZL6u4xFfcJ7OqShwi0hTazQ fCQfepQQAHJzUUm+VUNuhbn5Yb97AT3nzKnSLTSRYkbV83eu3ewCHMZoJbHsrbgTz8DL xIHeP73zvxzEN9lOjSybDhzMVYNyuen73M1sLij+K27BB65P991/9t6CYrMfOtgkPp9h 2IdscrHpcEUIhe0y/GO09ISkqVZtSRs2gk/CMoDehz9Vm7AU+ZpaO9nwoSBLRNiipwHR wcTmkLQ7RWypy/eX59ojvAhNvBj3mtQEKQDEANW3pPkve8le/QJTtbWcgn8VhR4fyk3i PpXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UW49RSnxihrnuMgbN96e6Xz1xJTwO9rSFv/c0td/t5U=; b=Tdk6prFf90lS5Hj56gMaO+jjb26tzd3qQH1IMNRPXtjlGOB7HDbqCC9P0cSKDtDwkX g4kVkgQhNe2POJjUyT/Qu5uyagImOUkThXxWftlg6yLljB9fD9JAEkZEMZM8HXBbTAOr r/J9sdVVZ5UJt8imIY/kamIuYp33rby4275rLNyv9OEsLiQjKjqDs5kYitRIco7GBM+n 3DAHb31P5TXOMvwXB3Tgua5PNqeOnSj/NwaNEHnswjCPmLXwe9b/9snOXLWGY/rUtvrA wZzBYgJXJmr4Bwik6odZm0d3k81XrXr4CNeThfZzKJtCqa0UA6A2dLPpBV0mcn+1MCw8 y5SA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si1113577oic.96.2019.12.10.10.59.52; Tue, 10 Dec 2019 11:00:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727663AbfLJS6Z (ORCPT + 99 others); Tue, 10 Dec 2019 13:58:25 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33374 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727455AbfLJS6Y (ORCPT ); Tue, 10 Dec 2019 13:58:24 -0500 Received: by mail-pf1-f195.google.com with SMTP id y206so299572pfb.0; Tue, 10 Dec 2019 10:58:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UW49RSnxihrnuMgbN96e6Xz1xJTwO9rSFv/c0td/t5U=; b=QfMnnxnqz8nU4ReukI3QXDJ44/9FytQIfnZT7wnbNWk5P3vhGy01HZL/TZ2HfwPB6P b0Z+zBR0WiNQosZZXyLw4bmZnYgVh7r2mx8QUBwZctUIOwT+wNoYtQEoa469oGlmdXfw BWeVGJP6MeyHixG1RPhZzS1vBZqR5Z39jopHht07gyMFg8vQ/jWDNgUwsFFdEQPAFw7q Q0p5DpUE+Z82d97fqR7optENQfu8Ez2bxK2T7N26mQnNdeV0M4Q0hlPGssEjeCnT9pwq 1YR0FtftqipLFxgUJpaAqA2G1kHap2VGPUFkclqQoSIOy7RVn8qz7Y48O6/KO+gn1d4v /79w== X-Gm-Message-State: APjAAAXJ1RLTLjSyI4IEDRuXYWsvWOSY9Pmgm8VdKgNkg3FSmx5dt+B+ SN+NSNRiaHYkB0aK90ynGDUL7RA5HDs86Q== X-Received: by 2002:aa7:9d0e:: with SMTP id k14mr36697605pfp.157.1576004303795; Tue, 10 Dec 2019 10:58:23 -0800 (PST) Received: from localhost ([2601:646:8a00:9810:5af3:56d9:f882:39d4]) by smtp.gmail.com with ESMTPSA id q22sm4300058pfg.170.2019.12.10.10.58.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 10:58:23 -0800 (PST) Date: Tue, 10 Dec 2019 10:59:20 -0800 From: Paul Burton To: Denis Efremov Cc: Ralf Baechle , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: disable kcov instrumentation in compressed dir Message-ID: <20191210185920.k6kunob6enrkcnn2@lantea.localdomain> References: <20191210175002.981-1-efremov@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191210175002.981-1-efremov@linux.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Denis, On Tue, Dec 10, 2019 at 08:50:02PM +0300, Denis Efremov wrote: > 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(+) This one's identical to this patch which was merged to mips-fixes yesterday: https://git.kernel.org/mips/c/3f0a2abff9aa Thanks, Paul > 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 >