Re: Symbols with the same name from different shared objects

2018-09-11 Thread Mo Zhou
On Wed, Sep 12, 2018 at 10:17:13AM +0500, Andrey Rahmatullin wrote: > On Wed, Sep 12, 2018 at 04:38:05AM +, Mo Zhou wrote: > > I'm confused about which symbol would be eventually loaded when > > different shared objects provides different implementation for > > the same function signature, e.g.

Re: Symbols with the same name from different shared objects

2018-09-11 Thread Andrey Rahmatullin
On Wed, Sep 12, 2018 at 04:38:05AM +, Mo Zhou wrote: > I'm confused about which symbol would be eventually loaded when > different shared objects provides different implementation for > the same function signature, e.g. (glibc)malloc and (jemalloc)malloc . Loading order usually. You can consult

Symbols with the same name from different shared objects

2018-09-11 Thread Mo Zhou
Hi mentors, I'm confused about which symbol would be eventually loaded when different shared objects provides different implementation for the same function signature, e.g. (glibc)malloc and (jemalloc)malloc . Debian's jemalloc package doesn't mangle the function names, i.e. jemalloc's malloc imp