search for: ld_dynamic_weak

Displaying 2 results from an estimated 2 matches for "ld_dynamic_weak".

2017 Jan 08
2
Weak symbol function in shared library and strong symbol function in main problem
...> wrote: > > ELF dynamic loaders generally do not distinguish between weak and strong symbols. They only look at the visibility, which can be internal, hidden, default, or protected. Was it always the case? The only thing I find in the doc is the description of the environment variable: LD_DYNAMIC_WEAK "(glibc since 2.1.91) Allow weak symbols to be overridden (reverting to old glibc behaviour)." Just curious… — Mehdi > > If you're trying to allow the main program to customize some aspect of your LD_PRELOAD'ed tool, you probably want to use an extern weak symbol. I fo...
2017 Jan 08
3
Weak symbol function in shared library and strong symbol function in main problem
Hi, I have a pass that add a function in the module where the “main” is. Then, I have the same function declared as weak symbol in a shared library that I load at runtime with LD_PRELOAD. When I run a program the weak symbol function gets called over the function was added by the pass. Is it a correct behavior? Is there a way to call the strong symbol function when it’s present in the module? In