ld internal error with --just-symbols flag
Jason Khallouf
jason@catapult.com
Thu Jan 20 01:45:00 GMT 2005
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
More information about the Binutils
mailing list