bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld (bfd) bug: discarded N_EXCL stab in repeated link [PATCH]


From: Nick Clifton
Subject: Re: ld (bfd) bug: discarded N_EXCL stab in repeated link [PATCH]
Date: Wed, 31 Mar 2004 09:45:16 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux)

Hi Mattias,

> Sometimes ld throws away N_EXCL stabs found in the input file.
> This can occur when the input file is the result of a (partial) link.
> I ran into this bug when linking the Linux kernel.
>
> When a repeated include file is excluded, then the N_BINCL stab is
> changed to N_EXCL, and all the contained stabs up to and including the
> corresponding N_EINCL stab are removed. The bug is here that an N_EXCL
> stab (mark of a file that was excluded in a previous link) is also
> removed. This is always an error --- N_EXCL stabs must remain untouched
> in order for the include file number in stab types to be correct.

Thanks for reporting this bug and supplying a patch to fix it.  I have
applied your patch along with this ChangeLog entry:

  2004-03-31  Mattias Engdegard  <address@hidden>

        * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.

Cheers
        Nick
        





reply via email to

[Prev in Thread] Current Thread [Next in Thread]