newlib on powerpc-eabi with soft-float
Kai Ruottu
kai.ruottu@luukku.com
Thu May 2 12:01:00 GMT 2002
Peter Barada wrote:
>
> >However, the linker now complains about a whole load of unresolved symbols:
>
> I don't claim to be an expert(I don't even play one on TV :-).
> The symbols missing are indeed functions to perform floating point
> operations. To find out more, there are two things you can do:
>
> 1) change your link line to add '-v' which will cause the compiler
> front end to dump the exact line that is passed to the linker
> (which should tell you where its looking for libgcc.a and libc.a)
>
> 2) change your link line to add '-Wl,-Map,test.map' to genereate a
> linker map file in test.map. By looking through that, you'll find
> what symbols are causeing what files to be link in(look for the
> LOAD lines).
The third would be the '-Wl,-verbose' on the GCC-command line, giving
the option '-verbose' to the GNU ld. Then it verbosely tells what it
tries to do during the linking... Generating a log-file is recommended:
E:\usr\local\ppc-eabi\bin>ld --help
Usage: ld [options] file...
Options:
<snip>
--verbose Output lots of information during link
--version-script FILE Read version information script
The "Output lots of information" really means what it tells... The '--help'
is one basic option more to learn and try.
> >This problem only occurs when I try to run gcc on my RS/6000 AIX box. When
> >I run gcc (configured and compiled exactly the same) on a Windows/Cygwin
> >machine, I don;t get any unresolved symbol problems at all.
Perhaps there is something wrong with the AIX-hosted installation... Anyway
the '-v -Wl,-verbose' should tell what options were given to the linker (-v)
and what it did with them (-verbose)...
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
More information about the crossgcc
mailing list