This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld internal error with --just-symbols flag
- From: Jason Khallouf <jason at catapult dot com>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: bug-binutils at gnu dot org, binutils at sources dot redhat dot com
- Date: Thu, 20 Jan 2005 12:45:37 +1100
- Subject: Re: ld internal error with --just-symbols flag
- References: <200501171123.13780.jason@catapult.com> <20050118083638.GA11225@bubble.modra.org>
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