This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
problems linking memory and string functions
- From: "Koeller, T." <Thomas dot Koeller at baslerweb dot com>
- To: "ecos-discuss (E-Mail)" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 28 May 2002 18:25:59 +0200
- Subject: [ECOS] problems linking memory and string functions
I am encountering problems using functions like memcpy,
memset, strcpy etc. When I use those functions in my program,
the linker does not find them in libtarget.a, although nm reports
them to be present. I can work around this by passing a
'-u memcpy' argument to the linker. The one thing that all these
functions have in common is that they are defined as weak aliases
for the real functions (probably to allow the user to replace them).
I suspect this to be the root of the problem.
I saw this with gcc-3.0.4 and gcc-3.1, configured as arm-ecos-elf,
and binutils-1.12.
tk
-----------------------------------------------
Thomas Koeller, Software Development
Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany
Tel +49 (4102) 463-390
Fax +49 (4102) 463-46390
mailto:Thomas.Koeller@baslerweb.com
http://www.baslerweb.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss