This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
newlib functions at address 0x0
- From: Noé SERRES <noe dot serres at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Thu, 26 May 2005 10:13:15 +0200
- Subject: newlib functions at address 0x0
- Reply-to: Noé SERRES <noe dot serres at gmail dot com>
Hi,
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.
Thanks,
Noe Serres
electrical engineer, France