A symbol in a shared library, which has already been resolved.
tanaka
tanaka@personal-media.co.jp
Mon May 17 10:48:00 GMT 2004
Hello All,
This sample says,
>./libtest.so: undefined reference to `temtem'
.
MAIN() has already been resolved, without libtest.so.1.
Why MAIN() in libtest.so.1 is referenced?
--------- result ----------------
tanaka:/work/test/undef/$ ./mk.rc
./libtest.so: undefined reference to `temtem'
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
GNU ld version 2.13.90.0.18 20030206
tanaka:/work/test/undef/$
--------------------------------
Thanks.
t_tanaka
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mk.rc
URL: <https://sourceware.org/pipermail/binutils/attachments/20040517/454eabdc/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crt0.S
URL: <https://sourceware.org/pipermail/binutils/attachments/20040517/454eabdc/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.c
URL: <https://sourceware.org/pipermail/binutils/attachments/20040517/454eabdc/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MAIN.c
URL: <https://sourceware.org/pipermail/binutils/attachments/20040517/454eabdc/attachment-0001.c>
More information about the Binutils
mailing list