This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: What does the linker do with a shared library?
- From: Michael Morrell <morrell at alumni dot ucsd dot edu>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 28 Sep 2009 15:29:17 -0700 (PDT)
- Subject: Re: What does the linker do with a shared library?
- Reply-to: morrell at alumni dot ucsd dot edu
Ian,
Thanks for the information. It doesn't really address all the things
a linker does when it processes a shared library. You only mention
adding entries to the GOT and PLT (unless I missed something).
Aside from creating entries in the dynamic section (for which I
understand the big picture, but I expect I'm missing some details),
what else is done?
I believe I read that, until fairly recently, the linker was updating the
symbol size of UNDEF symbols in the executable (which are supposed to
always be zero) with the size of a function found in a shared library
(using the shared library's symbol table).
Michael