`.sym' referenced in section `reloc_sym' of file.o: defined in discarded section `.text.sym' of file.o
Etienne Lorrain
etienne_lorrain@yahoo.fr
Fri May 19 15:30:00 GMT 2006
--- Alan Modra wrote:
> On Wed, May 17, 2006 at 01:03:43PM +0200, Etienne Lorrain wrote:
> > > > ld: error: no memory region specified for loadable section `.rel.dyn'
> >
> > Looks like that is now a warning - I do not understand why.
>
> ld/
> * ldlang.c (lang_size_sections_1): Don't check mem regions for
> os->ignored sections.
> ld/testsuite/
> * ld-scripts/empty-orphan.t: Discard .reginfo.
> * ld-scripts/empty-orphan.d: Update.
>
> Index: ld/ldlang.c
> ===================================================================
> RCS file: /cvs/src/src/ld/ldlang.c,v
> retrieving revision 1.218
> diff -u -p -r1.218 ldlang.c
> --- ld/ldlang.c 17 May 2006 16:46:54 -0000 1.218
> +++ ld/ldlang.c 19 May 2006 02:39:55 -0000
> @@ -4198,7 +4198,8 @@ lang_size_sections_1
> /* If a loadable section is using the default memory
> region, and some non default memory regions were
> defined, issue an error message. */
> - if (!IGNORE_SECTION (os->bfd_section)
> + if (!os->ignored
> + && !IGNORE_SECTION (os->bfd_section)
> && ! link_info.relocatable
> && check_regions
> && strcmp (os->region->name,
Thanks, works for me.
Etienne.
___________________________________________________________________________
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel.
Rendez-vous sur http://fr.yahoo.com/set
More information about the Binutils
mailing list