RFC: COMDAT group names become anonymouse local symbols

H.J. Lu hjl.tools@gmail.com
Thu Oct 21 05:41:00 GMT 2010


On Wed, Oct 20, 2010 at 10:27 PM, Mark Mitchell <mark@codesourcery.com> wrote:
> 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 rather
>>>> than the symbol name from .strtab.  But 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?  Or 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.  The
> 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.



-- 
H.J.



More information about the Binutils mailing list