This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

newlib functions at address 0x0


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


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