This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: RFC: .gnu.linkonce.* and shared libraries
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: RFC: .gnu.linkonce.* and shared libraries
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 11 Jul 2001 12:43:15 -0700
- Cc: binutils at sources dot redhat dot com, drepper at redhat dot com, jason_merrill at redhat dot com
- References: <20010711150723.D899@sunsite.ms.mff.cuni.cz>
Jakub Jelinek <jakub@redhat.com> writes:
> 3) once all dependent libraries are mapped, if there are any dynamic
> libraries, linker searches all those libraries if it finds an area in the
> corresponding section (.gnu.linkonce.t -> .text etc.) of the library, which:
>
> a) has the required alignment of .gnu.linkonce.* section
> b) all the symbols against the .gnu.linkonce.* section are present there
> too, with the same symbol properties, at the same relative offset
> from start of .gnu.linkonce.* section resp. of the area in the library
> c) likewise for relocations against .gnu.linkonce.* section resp. area,
> again it has to be the same relocation type, same visibility, against
> the same symbol, with the same addend etc.
> d) the content of the .gnu.linkonce.t section is identical to the content
> of the area (for RELA relocations against the area after all
> relocations are relocated to canonical form)
How does the dynamic linker locate .gnu.linkonce sections? Remember
that the dynamic linker does not look at section headers. It only
looks at program segments.
Ian