This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]