[uClinux-dev] elf2flt problems

Tom Walsh tom at cyberiansoftware.com
Thu Oct 11 19:49:12 EDT 2001


David McCullough wrote:
> 
> Jivin Erwin Authried lays it down ...
> > Tom Walsh[SMTP:tom at cyberiansoftware.com] wrote:
> > > Erwin Authried wrote:
> > > >
> > > >
> > > > I tried the almost similar ld script from
> > > > http://www.uclinux.org/pub/uClinux/m68k-elf-tools/tools-20010716/ too,
> > > > with the
> > > > following result:
> > > >
> > > > arm-uclinux-ld: warning: no memory region specified for section `.glue_7t'
> > > > arm-uclinux-ld: warning: no memory region specified for section `.glue_7'
> > > > arm-uclinux-ld: a.out: could not find output section .data for input section .data
> > > > arm-uclinux-ld: final link failed: Nonrepresentable section on output
> > > >
> > >
> > > Looks to me as if some code somewhere is specifying sections called
> > > '.glue_7t' & '.glue_7' and you don't have these sections listed in your
> > > ld file..
> >
> > Hi Tom,
> >
> > thanks for the hint, bt the glue7 errors aren't my problem. The glue7
> > sections are defined anyway
> > in the script that I tried first.The problem is the linker msg about
> > the .data section that appears
> > with both scripts that I tried:
> >
> >       a.out: could not find output section .data for input section .data
> >       final link failed: Nonrepresentable section on output
> 
> I updated my m68k-elf build scripts a while back to do ARM as well, but I
> had this exact same problem when trying to build PIC code for ARM.
> 
> At this point I can only thing its a problem with the linker.  For some
> reason it cannot see the .data directive that is obviously in the ldscript.
> 
> It works fine when building non-PIC code though.  I haven't had a chance to
> get back to looking at it :-(
> 

Hi David,

Erwin copied me on private email and said that things worked when he
took out the -fPIC statement, it made a huge file (2X increase), but it
did run.

Regards,

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list