jougs / test_dynlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test_dynlib

This is a simple test program to understand the effects of LD_PRELEADing a library versus dlopening it and how to use a symbol lookup to call a function from the dlopened library.

You can configure the program sources with cmake ., compile it with make, and run it with either LD_PRELOAD=libtwo.so ./main or just plain as ./main.

About


Languages

Language:CMake 73.6%Language:C++ 25.3%Language:C 1.1%