Re: Documenting the (dynamic) linking rules for symbol versioning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 20 April 2017 06:10 PM, Michael Kerrisk (man-pages) wrote:
> I think that I have failed to provide enough detail for
> you to understand what I meant. Consider the following:
> 
> 1. We want to interpose some symbol in glibc (say, "malloc@GLIBC_2.0")
>    with a symbol of our own (perhaps via a preloaded library).
> 2. In our preloaded shared library, the interposing "malloc"
>    need not be a versioned symbol.
> 
> At least

Ah ok, got it.  The dlsym will result in picking up the latest symbol.

> Note the last line: dlsym() found xyz@@VER_2 (not xyz@VER_3).

Hmm interesting, I thought 'latest' would imply the last version in the
sequence of versions in the map, but I guess it kinda makes sense that
it is the @@ default, similar to how a static linker would pick it up.

Siddhesh
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux