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: PATCH: Support SHF_GNU_COMPRESSED


On Wed, Jul 21, 2010 at 5:18 PM, Alan Modra <amodra@gmail.com> wrote:
> On Wed, Jul 21, 2010 at 09:31:56AM -0700, H.J. Lu wrote:
>> On Wed, Jul 21, 2010 at 7:21 AM, Alan Modra <amodra@gmail.com> wrote:
>> > A linker that doesn't know about compressed sections can't possibly
>> > apply relocations for them correctly, so I think we should be setting
>> > SHF_OS_NONCONFORMING on these sections. ?I didn't have a preference
>> > for SHF_GNU_COMPRESSED or SHT_GNU_COMPRESSED until I noticed that GNU
>> > ld doesn't emit a diagnostic for SHF_OS_NONCONFORMING with unknown
>> > flags (which is a bug), but does do so for unknown types. ?So I favour
>> > SHT_GNU_COMPRESSED. ?That way an older GNU ld will sensibly give up if
>> > presented a new compressed debug object file.
>>
>> I will keep .zdebug sections and won't use SHT_GNU_COMPRESSED.
>
> My comment above is just as relevant to .zdebug.
>

Current .zdebug* section uses PROGBITS. My patch simple follows
the current scheme.

-- 
H.J.


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