Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #40360] [PATCH] implement loadlib(NULL)

8 views
Skip to first unread message

Dmitry Karasik

unread,
Sep 19, 2006, 5:51:09 AM9/19/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Dmitry Karasik
# Please include the string: [perl #40360]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40360 >


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

diff

Leopold Toetsch

unread,
Sep 20, 2006, 10:08:36 AM9/20/06
to perl6-i...@perl.org
Am Dienstag, 19. September 2006 11:51 schrieb Dmitry Karasik:
>
> 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.

Great. Thanks, applied - r14670.
leo

0 new messages