libc/1818: pthread problem with dlcose()

Ian Lance Taylor ian@zembu.com
Tue Jul 18 21:35:00 GMT 2000
   Date: Tue, 18 Jul 2000 21:27:03 -0700
   From: "H . J . Lu" <hjl@lucon.org>

   > Solaris solves the problem (they also don't allow unloading the thread
   > library) is by having the flag DF_1_NODELETE set in the FLAGS_1 word
   > of the thread library.  This is a much more worthwhile way to handle
   > this.

   Here is the patch for binutils. Ian, any comments?

Parsing a string inside BFD seems very weird to me.  The linker should
handle parsing, and should tell BFD what to do.

gcc will sometimes pass -z text to the Solaris linker.  I believe that
this patch will cause the linker to produce a fatal error when that
happens.  Without this patch, the -z option will be ignored.

Are these -z options compatible with existing Solaris options?  That
is, has Solaris added these to the set of -z options?  Or are you
making them up?  If the latter, how does the Solaris linker decide
when to set these flag bits.

You need to add documentation to ld.texinfo for these new options.  I
personally have no idea what they mean.

Ian


More information about the Binutils mailing list