newlib functions at address 0x0

Thu May 26 08:13:00 GMT 2005

I am trying to link a small program using newlib.
I implemented a sine function (for example) in my main().
I specified the "-lm" option for the compiler and linker in my makefile.
The problem is that the sine code is located at address 0, where my
reset vectors should normally be! annoying!
What am I doing wrong? Should I specify something in the linker command file? 

Note: my config: powerpc-eabi GNU toolsuite for a powerpc MPC5200. using Cygwin.


Noe Serres
electrical engineer, France

More information about the Newlib mailing list