This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
"undefined ref to _DYNAMIC_LINK" problem in GNU ld
- From: Tao Zhang <zhangtao at cc dot gatech dot edu>
- To: binutils at sources dot redhat dot com
- Date: Fri, 10 Oct 2003 21:01:18 -0400 (EDT)
- Subject: "undefined ref to _DYNAMIC_LINK" problem in GNU ld
Hi,
I am trying to build an alpha-dec-osf toolchain from RH Linux system. Now
I have got a set of system header files and lib files from the target
system, so the cross compilation is not very difficult.
Now it seems the cross compiler can generate object files (not extensively
tested yet), but the linker doesn't work. When linking a file, it gives
the following error messages:
LIBDIR/lib/libc.a(init_libc.o): In function `__pthreadAtomThreaded':
init_libc.o:784: undefined reference to `_BASE_ADDRESS'
init_libc.o:784: undefined reference to `_DYNAMIC_LINK'
LIBDIR/lib/libc.a(ldr_atexit.o): In function `__ldr_atexit':
ldr_atexit.o:101: undefined reference to `_DYNAMIC_LINK'
These symbols should be defined by the loader, but maybe GNU ld doesn't do
that? These symbols look related with shared libraries, but I don't need
shared library support at all.
Does anybody know how to get around this problem? Maybe manually define
these symbols in GNU ld?
Thanks a lot!
Tao
-Tao Zhang (zhangtao@cc.gatech.edu)