This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Referenced symbol not present in final image?
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 08 Apr 2005 13:14:57 +0200
- Subject: Referenced symbol not present in final image?
One more thing:
If I add -Wl,--undefined=pthread_mutex_lock, I get the expected result,
i.e. that the pthread_mutex_lock fn is included in the final image.
$ arm-elf-gcc -Wl,-static -g -nostdlib -nostartfiles -L../romapp/install/lib -Ttarget.ld
[truncated] -Wl,-Map,output/rimi.map -Wl,--trace-symbol=pthread_mutex_lock -Wl,--undefined=pthread_mutex_lock
/ecos-c/cdtworkspace/arm/install/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/lib/libsupc++.a(eh_alloc.o): reference to pthread_mutex_lock
/ecos-c/cdtworkspace/arm/install/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/lib/libstdc++.a(locale_init.o): reference to pthread_mutex_lock
/ecos-c/cdtworkspace/arm/install/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/lib/libstdc++.a(allocator-inst.o): reference to pthread_mutex_lock
../romapp/install/lib/libtarget.a(compat_posix_mutex.o): definition of pthread_mutex_lock
--
Øyvind Harboe
http://www.zylin.com