This is the mail archive of the binutils@sourceware.org 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: RFC [PATCH] Use .strtab section for section name strings


On Mon, Jun 29, 2015 at 11:26:24PM -0700, Cary Coutant wrote:
> >> Here is a patch to use .strtab section for section name strings if
> >> there are symbols, otherwise use .shstrtab section.
> >
> > I think this is a bad idea.
> > ...
> > The great majority of object files won't see as much benefit.  I
> > reckon shared libraries and executables will only show very small
> > decreases, at the cost of violating the ELF gABI.
> 
> To be fair, I don't think this would violate the spirit of the ELF
> spec.

You may be correct, but how will this play with utilities that modify
binaries, eg. objcopy/strip?  Particularly if someone uses an older
objcopy/strip with one of these newfangled binaries.  I guess
objcopy/strip might just happen to work due to BFD hiding away details
like .strtab and .shstrtab, but I'm not sure.  elfutils ought to be
checked too.

-- 
Alan Modra
Australia Development Lab, IBM


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