At 09:48 AM 4/6/04 +0000, you wrote:
>linking directly to the object files of newlib-lpc (as it is done in the
>example.mak) works perfectly, but linking to libnewlib-lpc.a doesn't
>(the elf file size differs by a few bytes and the program does not run
>correctly).
>
>My linker command line:
>arm-elf-ld -o myexample.elf crt0.o myexample.o -lnewlib-lpc -Tlpc210x.ld
Might be link order. I added the following to my load file when I started
using the library.
/* Libraries to link against. */
INPUT( -lc -lnewlib-lpc -lc -lgcc )
Try having ld dump a map file for the two links and compare, that should
narrow down the possibilities as well.
Robert
" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, IIIMessage
Re: [lpc2000] Problems with linking to libnewlib-lpc.a
2004-04-06 by Robert Adsett
Attachments
- No local attachments were found for this message.