Re: dlopen() and friends from a statically-linked binary?

2000-07-21 Thread Martin Hopkins
> "Raymond" == Raymond Wiker <[EMAIL PROTECTED]> writes: Raymond> raw : ~ $ cat dltest.c Raymond> #include Raymond> #include Raymond> main() Raymond> { Raymond> void *handle; Raymond> void *sym; Raymond> handle = dlopen(0, RTLD_LAZY); Raymond> if

RE: dlopen() and friends from a statically-linked binary?

2000-07-21 Thread Daniel O'Connor
On 20-Jul-00 Raymond Wiker wrote: > Is it possible, at all, to use dlopen etc from a > statically-linked executable? My experiments with FreeBSD-4.0 (see > below) indicate that it's not possible. You can't do it from a statically linked binary, however you can create a dynamic executable w

Re: dlopen() and friends from a statically-linked binary?

2000-07-21 Thread Raymond Wiker
> raw : ~ $ gcc dltest.c -o dltest > raw : ~ $ ./dltest > Handle: 0x2805e000, main: 0x0 > Handle: 0x0, main: 0x0 > > [ Note: this seems wrong; according to the manpage for dlsym, the > second call should give the same output as the first. ] Sorry about the confusion... the "main" symbol

RE: dlopen() and friends from a statically-linked binary?

2000-07-25 Thread Andrzej Bialecki
On Sat, 22 Jul 2000, Daniel O'Connor wrote: > > On 20-Jul-00 Raymond Wiker wrote: > > Is it possible, at all, to use dlopen etc from a > > statically-linked executable? My experiments with FreeBSD-4.0 (see > > below) indicate that it's not possible. > > You can't do it from a statically l

RE: dlopen() and friends from a statically-linked binary?

2000-08-07 Thread Raymond Wiker
Daniel O'Connor writes: > > On 20-Jul-00 Raymond Wiker wrote: > > Is it possible, at all, to use dlopen etc from a > > statically-linked executable? My experiments with FreeBSD-4.0 (see > > below) indicate that it's not possible. > > You can't do it from a statically linked binary,