dlsym(RTLD_NEXT) + weak symbol doesn't work with LD_PRELOAD

Issue #76 closed
Takehiko NOZAKI repo owner created an issue

related Issue #67

try attached sample code, following works fine.

$ ./test_c
i'm libc!
$ ./test_pthread
i'm libpthread!
$ LD_PRELOAD=./libpthread_dummy.so.0.0  ./test_c
i'm libpthread!

but LD_PRELOAD=./librumphijack_dummy.so doesn't work anymore.

$ LD_PRELOAD=./librumphijack_dummy.so ./test_c
start hijack
i'm libc!
end hijack

Comments (2)

  1. Log in to comment