Date: Tue, 25 Feb 1997 11:50:21 -0500 From: Bakul Shah <bakul@torrentnet.com> To: Peter Haight <peterh@prognet.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Static variables in shared libraries Message-ID: <199702251650.LAA01376@chai.plexuscom.com> In-Reply-To: Your message of "Tue, 25 Feb 1997 00:30:40 PST." <3.0.1.32.19970225003040.00ff58e4@prognet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> I have a shared library which has the following definitions: > > const char* test_3 = "hello"; > const char* test_4 = test_3; > > If I dynamically load this shared library in my program and print the > variables, I get: > test_3 = "hello" > test_4 = 0x0 > > What's going on? May be shlib linking is broken? > Additionaly, does anyone know a good source of detailed information on the > implementation of shared libraries on various platforms? Other than reading code and man pages, you may want to check out old usenix conference proceedings. Try www.usenix.org to look up which proceedings (if you are a member you can pull off papers). The UW library may also have them. -- bakul
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702251650.LAA01376>