Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1011403ybx; Thu, 31 Oct 2019 04:29:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyklETkGP6m0NzBR3bOkhqHRY6i8iTXq3QlDY5LFiALhet4zrGPYU3w6PMQMbFh29N/v1Sy X-Received: by 2002:a17:906:1611:: with SMTP id m17mr3414935ejd.281.1572521356257; Thu, 31 Oct 2019 04:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572521356; cv=none; d=google.com; s=arc-20160816; b=o2oaUU8mK9ttr7rdx15Nw7x7uVeTAY7Ykk2UmuIxAeswkCRXOnOqp57CmSMBCmtthh dq9gFAPwDlBlTklFbVTuLBsBjCYemwKI3BEBitYDfVhGUBXDL2f4WuEc6GoCypW4ewSx 7AL+b0AtvI53dg17kMAmaspa3/UsSqZuj3ILGrWDR/LbCSqjARKccc05mQeindXeqBSf EqX4ChovF7pl+lGP0JekvIDgJDVbVfvDvNdjFpyreLYpxJQRv3EQYE2+xHeOCE62S3Bf po7KxygOT5mEGfuuatTIHTBhah+JUlaVUMsJ3UXUKdgEk4XP8xUGwmc1Dh2kyqpJrw9y A0Fg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zERjF8p0lWRuszeLtdQc9aGX1SESfNhug1H09sXRuFw=; b=dsjbRbvCVZL/QXqOTCVyZUBvGanwTKxAdPCKRbM9j3KStbjqGHgzwvJUk7DIB86p5i SzHLIyikixXgiCjasQsRa1Sb9iv7FtfIHNMokRnHfg1HaxK4zLtnsw4o8GbXb5cHW/hg r15l/0iGLpdZvaGg+z7SRAJn29TSzIFqCGloAhm84WrL93aO4m8rSXjjyAQFn8eCmYS7 Fl6SxewgPuboIMTPExhyn9EbEXqM1/+sthxjuC9ShG9OFNdk5gy5bY9iN2y/lYIkhoQC MnMbThxuF5wEKmr9UGL3HD3s68f4zF0FS0BlPhaGY2N8Z0syfhGc9yddHSn2R2NTHqED 3Blg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="AZFQwrT/"; 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=pass (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 u11si4334110edi.385.2019.10.31.04.28.52; Thu, 31 Oct 2019 04:29:16 -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; dkim=pass header.i=@kernel.org header.s=default header.b="AZFQwrT/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbfJaL0J (ORCPT + 99 others); Thu, 31 Oct 2019 07:26:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:59892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726455AbfJaL0I (ORCPT ); Thu, 31 Oct 2019 07:26:08 -0400 Received: from linux-8ccs (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4CD0920650; Thu, 31 Oct 2019 11:26:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572521168; bh=zERjF8p0lWRuszeLtdQc9aGX1SESfNhug1H09sXRuFw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AZFQwrT/Isqos+k1o3Ul933IlxVPdKI9DU2OgpcbeOJjCTNPuiaAYRUuqPk2KTO66 Ip8i8ATLPKNSHHkWQ3YvV9LxchKndifq4MmpNYtgxwxyNINYkDhvEXKyl5L6xAUZop aX933PzqC5AvWe15vP/A54mhOyNPFQugtFGqbCR4= Date: Thu, 31 Oct 2019 12:26:03 +0100 From: Jessica Yu To: Rasmus Villemoes Cc: Masahiro Yamada , Matthias Maennich , Greg Kroah-Hartman , Joel Fernandes , Martijn Coenen , Will Deacon , Will Deacon , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/7] module: avoid code duplication in include/linux/export.h Message-ID: <20191031112602.GD2177@linux-8ccs> References: <20190927093603.9140-1-yamada.masahiro@socionext.com> <20190927093603.9140-5-yamada.masahiro@socionext.com> <20191029191925.GA19316@linux-8ccs> <20191031101306.GA2177@linux-8ccs> <8eb4f2fd-f34f-606d-8e7d-4b6b6fb86edc@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8eb4f2fd-f34f-606d-8e7d-4b6b6fb86edc@rasmusvillemoes.dk> X-OS: Linux linux-8ccs 4.12.14-lp150.12.28-default x86_64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Rasmus Villemoes [31/10/19 12:03 +0100]: >On 31/10/2019 11.13, Jessica Yu wrote: >> +++ Rasmus Villemoes [29/10/19 22:11 +0100]: >>> On 29/10/2019 20.19, Jessica Yu wrote: > >>>> Apparently ld does not do the deduplication for SHF_MERGE|SHF_STRINGS >>>> sections for relocatable files (ld -r), which kernel modules are. See: >>>> >>>> ?? https://sourceware.org/ml/binutils/2009-07/msg00291.html >>> >>> I know :) >> >> That is exactly what we need! :) >> >>>> But, the strings do get deduplicated for vmlinux. Not sure if we can >>>> find a workaround for modules or if the benefit is significant enough >>>> if it only for vmlinux. >>> >>> I think it's definitely worth if, even if it "only" benefits vmlinux for >>> now. And I still hope to revisit the --force-section-merge some day, but >>> it's very far down my priority list. >> >> Yeah, I think it's worth having too. >> >> If you don't have any extra cycles at the moment, and it's far down >> your priority list, do you mind if I take a look and maybe try to push >> that patch of yours upstream again? > >Knock yourself out :) IIRC, it did actually work for the powerpc I was >targeting, but I don't remember if that was just "readelf/objdump >inspection of the ELF files looks reasonable" or if I actually tried >loading the modules. I've pushed the patch to >https://github.com/Villemoes/binutils-gdb/commit/107b9302858fc5fc1a1690f4a36e1f80808ab421 >so you don't have to copy-paste from a browser. Thanks a bunch! >I don't know how successful I'd >> be, but now since it's especially relevant for namespaces, it's >> definitely worth looking at again. > >Yeah, but even ignoring namespaces, it would be nice to have format >strings etc. deduplicated. Please keep me cc'ed on any progress you make. Thanks, I'll keep you posted if I manage to get somewhere with it :)