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 Tue, Jun 30, 2015 at 5:54 PM, Alan Modra <amodra@gmail.com> wrote:
> 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.
>

I consider it is a bug if an ELF tool can't handle it:

https://bugzilla.redhat.com/show_bug.cgi?id=1236699


-- 
H.J.


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