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

See the CrossGCC FAQ for lots more information.


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

"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 Zhang (zhangtao@cc.gatech.edu)

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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