This is the mail archive of the crossgcc@sources.redhat.com 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: newlib on powerpc-eabi with soft-float



Hi,

I don't understand what you mean by this. Do you mean that the linker
cannot see libgcc.a because I have no _start symbol? As I explained in my
previous email, I found that copying the libgcc.a built on my windows
machine to my AIX machine seems to fix this problem, so I suspect that
libgcc.a could be being built incorrectly on my AIX machine.

Thanks for bearing with me,

Chris




Chris Jenkins
IBM UK Laboratories
Chris.Jenkins@uk.ibm.com



                                                                                                                              
                      Kai Ruottu                                                                                              
                      <kai.ruottu@luukk        To:       Christopher Jenkins/UK/IBM@IBMGB                                     
                      u.com>                   cc:       crossgcc@sources.redhat.com                                          
                                               Subject:  Re: newlib on powerpc-eabi with soft-float                           
                      04/05/2002 07:49                                                                                        
                      Please respond to                                                                                       
                      Kai Ruottu                                                                                              
                                                                                                                              
                                                                                                                              



Christopher Jenkins wrote:
>
> Thanks, I used -msoft-float and the linker is now picking up the correct
> libc.a (the one in the nof directory). However, I have now come up
against
> another problem - gcc seems to be picking up the wrong (ie not
soft-float)
> version of libgcc.a.
>
> .. and compile it like this:
>
> powerpc-eabi-gcc -o test test.c -msoft-float -lc

 The obvious 'bug' here wasn't yet mentioned... "The bigger mistake one
does,
the harder it is for others to see it..."

> However, the linker now complains about a whole load of unresolved
symbols:

 If you haven't fixed your 'specs' to have some default target, you SHOULD
get unresolved symbols... The 'powerpc-eabi' "target" is not a complete
definition for the target system. Some BSPs in the format of 'glue
libraries'
startups and associated linker scripts come with newlib, and one can use
these
or provide equivalents for one's own target board...

> /usr/toolchain/powerpc-eabi/bin/ld: warning: cannot find entry symbol
> _start; defaulting to 01800074
> /usr/toolchain/powerpc-eabi/lib/nof/libc.a(vfprintf.o): In function
> `_vfprintf_r':
> 1.10.0/newlib/libc/stdio/vfprintf.c:592:
> undefined reference to `__ltdf2'

 Seemingly no startup (with '_start()'), no 'libgcc.a' etc. weren't linked
against...

Cheers, Kai







------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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