dlopen(NULL,...) on linux returns NULL, and consequently dlsym(NULL,...) can be
used to access shared objects of the main executable. However, on freebsd
dlsym(NULL,...) server somewhat different purpose, and to access the main
executable dlsym(dlopen(NULL,...),...) must be used instead. The attached patch
corrects t/compilers/imcc/syn/pcc.t so it calls loadlib(NULL) for testing NCI
loadlib interface, and implements it in src/dynext.c.
diffstat:
src/dynext.c | 49
t/compilers/imcc/syn/pcc.t | 8
2 files changed, 40 insertions, 17 deletions
--
Sincerely,
Dmitry Karasik
Great. Thanks, applied - r14670.
leo