This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold and shared objects with gcc 4.1.2
- From: Ian Lance Taylor <ian at airs dot com>
- To: Roland Baumann <roland dot baumann at CoWare dot com>
- Cc: bug-binutils at gnu dot org, binutils at sourceware dot org
- Date: Fri, 16 Jan 2009 06:22:01 -0800
- Subject: Re: gold and shared objects with gcc 4.1.2
- References: <496DA6E3.5050702@coware.com> <m3sknlaoqz.fsf@google.com> <496F675A.3000902@coware.com> <m3r6345tjh.fsf@google.com> <49705C95.5010406@coware.com>
Roland Baumann <roland.baumann@CoWare.com> writes:
> this patch indeed fixes my problem. Thanks a lot.
You're welcome. Thanks for reporting the bug.
> Actually, I am wondering whether it makes sense to use "-s" and
> "-shared" together. What information stays in the shared object that I
> am still able to link it?
An ELF shared object has two symbol tables: the dynamic symbol table
and the normal symbol table. The -s option removes the normal symbol
table. The dynamic symbol table contains whatever is needed for
dynamic linking.
Ian