From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2745 invoked by alias); 21 Oct 2010 05:41:13 -0000 Received: (qmail 2683 invoked by uid 22791); 21 Oct 2010 05:41:12 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-gy0-f169.google.com (HELO mail-gy0-f169.google.com) (209.85.160.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Oct 2010 05:41:08 +0000 Received: by gyd10 with SMTP id 10so3232417gyd.0 for ; Wed, 20 Oct 2010 22:41:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.49.10 with SMTP id w10mr2973519ybw.173.1287639666424; Wed, 20 Oct 2010 22:41:06 -0700 (PDT) Received: by 10.220.112.65 with HTTP; Wed, 20 Oct 2010 22:41:06 -0700 (PDT) In-Reply-To: <4CBFCF29.5070602@codesourcery.com> References: <20101019200838.8A9725664F9@henry1.codesourcery.com> <20101021001823.GQ26553@bubble.grove.modra.org> <4CBF89DF.5070509@codesourcery.com> <4CBFC470.5060202@codesourcery.com> <4CBFCF29.5070602@codesourcery.com> Date: Thu, 21 Oct 2010 05:41:00 -0000 Message-ID: Subject: Re: RFC: COMDAT group names become anonymouse local symbols From: "H.J. Lu" To: Mark Mitchell Cc: Ian Lance Taylor , binutils@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00340.txt.bz2 On Wed, Oct 20, 2010 at 10:27 PM, Mark Mitchell wro= te: > On 10/20/2010 10:19 PM, H.J. Lu wrote: > >>>> The gas behaviour makes sense in that it gives you a slightly smaller >>>> object file, although that is partially offset by the need for the >>>> linker to do extra work to dig up the section name from .shstrtab rath= er >>>> than the symbol name from .strtab. =A0But I agree that it does not meet >>>> the letter of the ELF standard. >>> >>> So, would a patch to make GAS create a local symbol for the group name >>> be acceptable? =A0Or would it be rejected on the grounds that it makes >>> object files bigger? > >> Can't we use ".group" as section name for all group sections? > > Yes, but that by itself doesn't do anything to solve the problem. =A0The > issue is whether the group signature symbol must have a name, not what > the name on the section is. > The symbol table entry of group signature doesn't need a name since it isn't a real symbol. Having a symbol name for group signature sounds a bad idea. --=20 H.J.