This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: GOLD LINKER DYNAMIC TABLE ISSUE
- From: Takis Psarogiannakopoulos <takis at XFree86 dot Org>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 11 Dec 2009 14:25:51 -0800 (PST)
- Subject: Re: GOLD LINKER DYNAMIC TABLE ISSUE
- References: <20091211134839.X76977@public.xfree86.org> <mcry6l9f99x.fsf@dhcp-172-17-9-151.mtv.corp.google.com>
On Fri, 11 Dec 2009, Ian Lance Taylor wrote:
> I guess I wonder what file the dynamic linker finds at run time.
> I assume that the dynamic linker does not actually open the archive
> and find the shared object in there. I assume that it instead finds a
> different shared object, based on the DT_SONAME tag of the one in the
> archive. And I assume that the latter shared object has a dynamic
> symbol table.
>
The GNU linker upon linking the "archived shared" libfoo.so will record in
it the soname of the dynamic object required to be loaded at execution
time. It will record correctly libfoo.so.1
Indeed a libfoo.so.1 must exist on its own. However
still on this file we have objdump -T libfoo.so.1
and the resulting executable is still usuable.
Regards,