[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Hidden Symbols
- From: "Amrith " <amrith programmer net>
- To: fedora-devel-list redhat com
- Subject: Hidden Symbols
- Date: Thu, 12 Aug 2004 03:50:01 -0500
Hi all,
I am having a problem, while compiling a C code program which is
having a stat64 function.
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../crt1.o(.text+0x18): In
function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'
ld: trial.o: hidden symbol `stat64' in
/usr/lib/libc_nonshared.a(stat64.oS) is referenced by DSO
Please can u answer why hidden symbols are used?
How to get out of this problem. Actually the definition is in
libc_nonshared.a.
Is there any work around for this problem ?
in the object file itself, stat64 is mangled as __xstat64(3, , ), i
guess it is to support the symbol versioning. libc_nonshared.c has no
symbol information involved with it. But at the same time the
referring library has symbol information insided the headers and
stat64 is also versioned.
If there is a symbol version mismatch, Will ld throw any warning?
Please let me know your thoughts.
Thanks & regards
Amrith
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]