Patrick and I took this discussion off list so we could continue it w/o
burden everyone with the details. We appear to have found and fixed the
source of the problem.
The upshot is the library he was using already had dummy newlib stubs in
it. So when linking they were taken in preference to the ones in
libnewlib-lpc.a unless the replacements were linked in explicitly.
Two solutions:
The quick and dirty one is to remove the dummy stubs from the library
(libc.a). If you try this remember to backup the original first :)
The other solutions (the more correct one?) is to rebuild newlib without
the pre-existing stubs (an option something like
-DREENTRANT_SYSCALLS_PROVIDED if I remember correctly). Check Bill
Gatliff's article and the newlib documentation before proceeding.
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] Re: Problems with linking to libnewlib-lpc.a
2004-04-11 by Robert Adsett
Attachments
- No local attachments were found for this message.