Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 1996 17:08:50 -0700 (PDT)
From:      Jeffrey Hsu <hsu>
To:        current
Subject:   Re: dlsym broken in -current
Message-ID:  <199610100008.RAA20944@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Okay, as has been pointed out to me, the test program I hastily
sent out, but did not run to completion because it core-dumps on
my -current system, had a minor logic bug with the return value of
dlsym which was unrelated to the problem at hand.  Here's a simpler
test program:

#include <dlfcn.h>
#include <stdio.h>

main()
{

	void *addr;

	if (!(addr = dlsym(NULL, "_main"))) {
	  fprintf(stderr, "dlsym failed: %s\n", dlerror());
	}
	printf("addr retrieved as 0x%x\n", addr);

}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610100008.RAA20944>