From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: Bill Diehls Cc: ecos-discuss@sources.redhat.com Subject: RE: [ECOS] Redboot and printf Date: Fri, 17 Aug 2001 05:30:00 -0000 Message-id: References: <20010817083327.67063.qmail@web20108.mail.yahoo.com> X-SW-Source: 2001-08/msg00600.html On 17-Aug-2001 Bill Diehls wrote: > Hello, > One thing I noticed for the PID platform, is that when > I build Redboot, it links two copies of printf -- one > in the libc package (printf.cxx) and one in the > redboot package (printf.c). I didn't realize this, > but it seems that ld will pick the first symbol it > finds instead of reporting an error. In my case, it > is picking the libc implementation. It seems that it > should be picking the reboot implementation. If it > should, perhaps there is a configuration problem on my > end? I'm wondering because I'm trying to port Redboot > to another ARM7 platform and it is unclear which is > correct. > RedBoot should never be built with the LIBC package included. Look at the RedBoot docmentation to see how to build it for various platforms. If you are porting to a new architecture or platform variant, use existing examples as your guide.