This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: [crosstool-ng] [patch] glibc-2.9 patch for "undefined reference to `_begin'


On Fri, Mar 27, 2009 at 04:17:46PM -0700, Nye Liu wrote:
> i have no idea why this is needed for me.
> 
> for some reason the output of
> 
> "powerpc-860-linux-gnu-gcc -nostdlib -nostartfiles -shared -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs -Wl,--verbose"
> 
> isn't doing the right thing with respect to generating the
> ". = 0 + SIZEOF_HEADERS;" line.
> 
> Not sure what other targets this affects.
> 
> Anybody else see this?

The line i see instead is:

  . = SEGMENT_START("text-segment", 0) + SIZEOF_HEADERS;

I can't imagine this is 860 (or even powerpc) specific.

Probably binutils specific:

GNU ld (Linux/GNU Binutils) 2.19.51.0.2.20090204

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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