This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Support SHF_GNU_COMPRESSED
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.
--
Alan Modra
Australia Development Lab, IBM