how does ld.so work when dlsym'ing a weak symbol (environ)

2017-11-06 Thread Christian Kellermann
Dear list, While porting a smalltalk VM to OpenBSD I came across this peculiar quirk and I don't quite understand what's going on. This VM does its FFI calls through dlopen'ing and dlsym'ing the symbols in question. This seems to work fine for all kinds of functions. However it fails with libc's

Re: how does ld.so work when dlsym'ing a weak symbol (environ)

2017-11-07 Thread Christian Kellermann
* Philip Guenther [171107 00:44]: > On Mon, Nov 6, 2017 at 2:37 PM, Christian Kellermann > wrote: > > > > While porting a smalltalk VM to OpenBSD I came across this peculiar > > quirk and I don't quite understand what's going on. > > > > Thi