This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Group identifier of a comdat group


On Wed, Jun 05, 2002 at 03:01:10PM -0700, Jessica Han wrote:
> Is it possible to change the gas behavior, put the section names into
> symtab/strtab directly? thanks.

Why do you want to do that?  Just to make group_signature nicer?

The reason section names go in a different string table to symbol
names is that an executable generally doesn't need to know section
names or anything much about sections.  Application loading is done
via segments.  The symbol names, though, are needed for dynamic
linking.  In fact, the ELF spec allows for executables to be built
without any section info at all.  So it makes sense to separate the
two string tables if the linker is to easily drop all section info.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]