This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Using linker scripts with dlopen
- From: "Howard B. Golden" <howard_b_golden at yahoo dot com>
- To: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Tue, 26 Jul 2011 16:18:39 -0700 (PDT)
- Subject: Using linker scripts with dlopen
- Reply-to: "Howard B. Golden" <howard_b_golden at yahoo dot com>
Hi,
On Gentoo Linux, many important shared libraries are represented by linker scripts rather than the actual library. For GHC Haskell, I created a patch (see http://hackage.haskell.org/trac/ghc/ticket/2615) that looks beyond the linker script when a dlopen attempts to load the shared object and gets a linker script instead. Recently, I noticed that this code has been adopted by others for different languages. This got me thinking that there might be some interest in incorporating this feature directly into libc.
Please let me know if there is any interest and I will send a patch.
Cheers,
Howard B. Golden
Northridge, California, USA