[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlopen question...



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Am Mittwoch, 4. Juni 2003 21:28 schrieb Martin Preuss:
> Am Mittwoch, 4. Juni 2003 21:13 schrieb Peter Valchev:
[...]
> > This statement is wrong.
> >
> > The underscore prefix is an a.out thing, and affects only a.out
> > platforms.  So OpenBSD needs it only for few architectures (especially
> > since i386 switched to ELF, even fewer)
>
> I'm using OpenBSD on a i386 platform, and dlsym does NOT work without that
> prefix.
> I verified this with two projects I participate in.
>
> So when it works WITH the underscrore (and it does), how can I be wrong ?

A real example:
uname -a
OpenBSD garwain.aquarius.home 3.2 GENERIC#25 i386
file *.0
libtowitoko.so.2.0: OpenBSD/i386 demand paged shared library not stripped
(evidently no a.out)

When trying to lookup the symbol "CT_init" I get an error ("not found").
The symbol "_CT_init" however is looked up correctly, and this is in fact the 
function I was looking for.

regards
MArtin


- -- 
LibChipcard - http://www.libchipcard.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+3ktMwcZBcYAOyGYRAlPAAJ95IKFrDfzuNXzM57+U3ajiMeJKVQCdFGC+
W2x5ZWBR384PH+XBZsWlYYE=
=RGhq
-----END PGP SIGNATURE-----