dlsym(RTLD_NEXT) + weak symbol doesn't work with LD_PRELOAD
Issue #76
closed
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)
-
reporter -
reporter - edited description
- changed status to closed
- Log in to comment
BUGFIX: Issue
#76-- dlsym(RTLD_NEXT) + weak symbol doesn't work with LD_PRELOAD.→ <<cset 5e5919d6b823>>