This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Docs for --unresolved-symbols unclear?
- From: Vladimir Prus <ghost at cs dot msu dot su>
- To: binutils at sources dot redhat dot com
- Date: Wed, 26 Nov 2003 16:50:46 +0300
- Subject: Docs for --unresolved-symbols unclear?
Hi,
the docs for --unresolved-symbols option of ld, say:
`ignore-all'
Do not report any unresolved symbols. This is the default
when creating shared libraries or dynamic executables.
Unless I misunderstand what 'dynamic executables' means, this is not correct.
On my system (Debian unstable), all binaries are dynamic by default. Say I
compile file a.cpp with the following content:
void foo();
int main()
{
foo();
}
With
g++ a.cpp
I get "unresolved symbol" error, as expected. But if I compile it with
g++ a.cpp -Wl,--unresolved-symbols=ignore-all
I get only warning, and binary crashes at runtime. So, it seems that default
value of --unresolved-symbls is not "ignore-all".
Is it so, and what's the real default value, or I'm missing something?
TIA,
Volodya