This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Weird problems when upgrading to 2.17
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Stefan Karlsson <stefan dot karlsson at questab dot com>
- Cc: binutils at sourceware dot org
- Date: Sat, 1 Jul 2006 11:45:52 +0930
- Subject: Re: Weird problems when upgrading to 2.17
- References: <44A1472B.5070806@questab.com> <20060627233223.GJ4388@bubble.grove.modra.org> <44A2369E.8040008@questab.com> <20060629003536.GM4388@bubble.grove.modra.org> <44A38609.9070609@questab.com>
On Thu, Jun 29, 2006 at 09:49:29AM +0200, Stefan Karlsson wrote:
> Alan Modra wrote:
> >On Wed, Jun 28, 2006 at 09:58:22AM +0200, Stefan Karlsson wrote:
> >>Alan Modra wrote:
> >>>On Tue, Jun 27, 2006 at 04:56:43PM +0200, Stefan Karlsson wrote:
> >>>> powerpc-eabi-ld: error: no memory region specified for
> >>>> loadable section `.rela.dyn'.
> >>>Did you mean to build a shared library or a dynamic executable? If so,
> >>>you might try adding "-z nocombreloc" to the linker command line.
> >>>
> >>No, I want to build a static executable that runs from flash.
> >
> >That's what I expected. So how did the linker think you needed dynamic
> >relocations? I think this can only happen if you pass -shared or -pie
> >to the linker, or link against shared libs.
>
> I really don't know. I use the exact same makefile and the exact same
> source code. The only difference is that I use ld 2.17 instead of 2.16.1
> to build the thing.
Can we see the linker command line? Better still, can you package up
all the object files involved in the link so someone can debug the
problem?
--
Alan Modra
IBM OzLabs - Linux Technology Centre