bug-binutils
[Top][All Lists]
Advanced

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

Re: ld internal error with --just-symbols flag


From: Jason Khallouf
Subject: Re: ld internal error with --just-symbols flag
Date: Thu, 20 Jan 2005 12:45:37 +1100
User-agent: KMail/1.7.1

On Tue, 18 Jan 2005 07:36 pm, Alan Modra wrote:
> Err, I think I'm the culprit who added the abort..  The problem here is
> that common variables are assigned to a section at a later stage than
> the code that sets up --just-symbols sections.  Since the section might
> need to be created, it doesn't have its vma and output_section set
> correctly, and lang_place_orphans tries to do something with it.
>
> bfd/
>       * bfd.c (bfd_link_just_syms): Add abfd param.
>       * bfd-in2.h: Regenerate.
> ld/
>       * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
>       (lang_place_orphans): Don't abort on just_syms_flag, instead call
>       bfd_link_just_syms.
>

Thanks, that seems to have fixed it.  My own code still doesn't link properly, 
but I think it's more to do with problems in the code and/or my linker 
script.   

Jason




reply via email to

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