This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Redboot and printf
- To: Bill Diehls <billabloke at yahoo dot com>
- Subject: RE: [ECOS] Redboot and printf
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Fri, 17 Aug 2001 06:31:30 -0600 (MDT)
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat, Inc.
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.