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

Re: dlopen question...



> 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.