This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC: .gnu.linkonce.* and shared libraries


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]