[Gc] Re: link libgc.so against libdl (patch)

Boehm, Hans hans.boehm at hp.com
Tue May 22 16:55:02 PDT 2007


Much belated thanks.  I'm finally integrating this into 7.0.

It looks like --no-undefined is a little problematic for libgc, since it
usually now generates references to ___tls_get_addr for thread local
storage, and I don't know how to resolve that before the final link.

Hans

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Rex Dieter
> Sent: Thursday, March 16, 2006 7:47 AM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] Re: link libgc.so against libdl (patch)
> 
> Rex Dieter wrote:
> > Per:
> > 
> http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/recent_changes
> > in todo section:
> >  - A dynamic libgc.so references dlopen unconditionally, 
> but doesn't 
> > link against libdl.
> > 
> > Here's a patch to fix that.  Feel free to omit the 
> '-Wl,--no-undefined' 
> > bits, as that is probably(?) not portable and is limited to 
> supporting 
> > gnu ld.
> > 
> 
> Oops, forgot to attach the patch, here it is.
> 
> -- Rex
> 



More information about the Gc mailing list