[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hidden Symbols
From: |
Amrith |
Subject: |
Hidden Symbols |
Date: |
12 Aug 2004 00:08:58 -0700 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Hidden Symbols,
Amrith <=