Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3477769ybc; Thu, 21 Nov 2019 08:55:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwGL7hHOO83u3fNrZOBMzQ4Z2/OUd0H/oex22dRIrlvQ/6uEaO5UA449Yl7FsROo55EHndy X-Received: by 2002:a17:906:b6c3:: with SMTP id ec3mr15476553ejb.27.1574355306373; Thu, 21 Nov 2019 08:55:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574355306; cv=none; d=google.com; s=arc-20160816; b=cKP3TRCC9qpfl+41bLK+aKnlgSvcZTag5BxbSY6NO9WYGo/IrYNVwMFQt9eOvRUckB 4LX2w1wDAVJ76CIQD7xq62Agsax2AqrwHJFesQ5J1pbdHYaCU6EzRdf79doS8O92ewQB ooCWtt3R2j9BTmzhHBntLJjpAPmlUId4FHvTVTOTOZLHZkt6VN7Zq2RQt//V6al6+Gvq /dd4E21tGVg3EPVTPOFN23q1jQKKYDC3rtqUU2SDlyYC+UE1yFmU1hpLB6djBszt8Bx4 gKMLXFWDdf+UGE25issxQZLvaCpwIYDrZpN5RUuFbE3jFeIM6AaZGc+0RgB3JTXF8wP7 LnKQ== 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:dkim-signature; bh=AZR3sW+BiePowmVjtIhzBXti/c5lJ9w6tULJwVsuchM=; b=WBJEd+aQHrU59gbQCgYOLiz/wp2aOUsn4P4TYdsfyzFgWCO7B+AH2x2eUDPmACwOys yBlJoyxnS25ZfuLjgWLp95Zu2o1vws8UzxPoVYeRwUL6KhdtnPqlnqw4bLhWpBU6F6dr 2vVK+U315GNLAixekX738GkBBDTDxJ9cSppVVthzY/If2rcnGx2aTGvj8LYFrcSYKNPS bfuaavfiUK199YXpEuRO6g4sBrVTT4jeMXmC2uWn4xCZwLbJTYrosDqYSaITnw3/nPD0 HLlfrYjIOPOMf87O2fTEfbj0tJ13EKn50iHjiqH16uvGOlzPbN9KeKj9ZnXIFOeobqvl p3Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f3nL1rnj; 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 x4si2220297ejs.376.2019.11.21.08.54.42; Thu, 21 Nov 2019 08:55:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=f3nL1rnj; 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 S1727028AbfKUQx0 (ORCPT + 99 others); Thu, 21 Nov 2019 11:53:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:51626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726747AbfKUQx0 (ORCPT ); Thu, 21 Nov 2019 11:53:26 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (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 2C23D20658; Thu, 21 Nov 2019 16:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574355205; bh=5YQuUwvEV2IjtXDfviE9LBz+gl36AhsvVGC/cp0ZkzA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f3nL1rnjcXHeGPctFIRc3nSHhABiswV6ac9RGZVn/UNm1AOpY6LIZnDg2U1J1prJu I+cde0oOfokij3KMhkufEFAuERnPszuDK7u/VwWD7h7vldmmfXxzMjv0tJR0VTmlEh BpORUA+nvZGkwr4Zr3Wemq438BPg9xPD6+r12+uM= Date: Thu, 21 Nov 2019 16:53:20 +0000 From: Will Deacon To: Jessica Yu Cc: Rasmus Villemoes , linux-kernel@vger.kernel.org, Matthias Maennich , Masahiro Yamada , Arnd Bergmann , Greg Kroah-Hartman , Catalin Marinas Subject: Re: [PATCH] export.h: reduce __ksymtab_strings string duplication by using "MS" section flags Message-ID: <20191121165320.GA4905@willie-the-truck> References: <20191120145110.8397-1-jeyu@kernel.org> <93d3936d-0bc4-9639-7544-42a324f01ac1@rasmusvillemoes.dk> <20191121160919.GB22213@linux-8ccs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191121160919.GB22213@linux-8ccs> 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 Hi Jessica, On Thu, Nov 21, 2019 at 05:09:20PM +0100, Jessica Yu wrote: > +++ Rasmus Villemoes [21/11/19 11:51 +0100]: > > On 20/11/2019 15.51, Jessica Yu wrote: > > > /* > > > - * note on .section use: @progbits vs %progbits nastiness doesn't matter, > > > - * since we immediately emit into those sections anyway. > > > + * note on .section use: we specify @progbits vs %progbits since usage of > > > + * "M" (SHF_MERGE) section flag requires it. > > > */ > > > + > > > +#ifdef CONFIG_ARM > > > +#define ARCH_PROGBITS %progbits > > > +#else > > > +#define ARCH_PROGBITS @progbits > > > +#endif > > > > Did you figure out a way to determine if ARM is the only odd one? I was > > just going by gas' documentation which mentions ARM as an example, but > > doesn't really provide a way to know what each arch uses. I suppose 0day > > will tell us shortly. > > I *think* so. At least, I was going off of > drivers/base/firmware_loader/builtin/Makefile and > scripts/recordmcount.pl, which were the only other places that I found > that reference the %progbits vs @progbits oddity. They only use > %progbits in the case of CONFIG_ARM and @progbits for other > arches. I wasn't sure about arm64, but I looked at the assembly files > gcc produced and it looked like @progbits was used there. Added some > arm64 people to CC since they would know :-) The '@' character is a comment delimiter for 32-bit ARM assembly, so that's why you end up having to use a different character there. This isn't the case for arm64, where you need to use standard C/C++ comment delimiters instead and so '@progbits' should work correctly. Hope that helps, Will