This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC [PATCH] Use .strtab section for section name strings
- From: Ed Maste <emaste at freebsd dot org>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 30 Jun 2015 23:21:06 -0400
- Subject: Re: RFC [PATCH] Use .strtab section for section name strings
- Authentication-results: sourceware.org; auth=none
- References: <20150628000035 dot GA30222 at intel dot com> <20150629042319 dot GE1723 at bubble dot grove dot modra dot org> <CAJimCsFCjv+K7z7nJhVgXkDA_C7XqYotFPbj_t_71VPL=sOaJg at mail dot gmail dot com> <20150701005440 dot GI1723 at bubble dot grove dot modra dot org> <CAMe9rOrs-5MQufzyS_ahJ6MU0hLz_iyGDEh112EM0FvqFKZq2g at mail dot gmail dot com>
On 30 June 2015 at 21:14, H.J. Lu <hjl.tools@gmail.com> wrote:
>>
>> 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
And the same issue in ELF Tool Chain elfcopy/strip:
https://sourceforge.net/p/elftoolchain/tickets/497/
This now has a quick fix which handles these objects (but recreates
separate tables on output).