This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]