Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Problems with linking to libnewlib-lpc.a

2004-04-06 by Robert Adsett

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, III

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.