[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:25 schrieb Peter Valchev:
> > 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 ?
>
> You are using an OpenBSD version where i386 was using the a.out binary
> format, and where you need the underscore.
>
> You are wrong in making the assumption that everything works this way,
> because your program will fail on other architectures, and on i386 in
> newer OpenBSD versions in the future.
Well, of course, I made sure that would never happen ;-)

If the symbol without the underscore is not found then an underscore is 
prepended and dlsym is tried again.

I introduced this to OpenHBCI as well, the main reason was to make both 
projects work with Linux/Free-/NetBSD AND OpenBSD.

regards
Martin



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

iD8DBQE+3kwEwcZBcYAOyGYRAqtFAJsEwl7R81o6RTAYmj0aQAvoaSwkMQCdGOYj
17zl3LRPHaUcjzQy4bt6//A=
=Eimd
-----END PGP SIGNATURE-----