svr4 patch for shared libs

Jeffrey A Law law@cygnus.com
Tue Mar 23 23:44:00 GMT 1999


  In message <19981220220857.D4349@rjlgemini.dgii.com>you write:
  > [ Please maintain explict cc on replies ] 
  > 
  > I'm hip with this patch on svr4/386, but since this is a massively shared
  > file, I'd like approval.
  > 
  > Yes, I'll create a changelog entry if approved.
  > 
  > Thanx,
  > RJL
  > 
  > 
  > ----- Forwarded message from "J. Kean Johnston" <jkj@sco.com> -----
  > 
  > To: Robert Lipe <robertl@dgii.com>
  > 
  > Hello Robert,
  > 
  > Here is a small patch for EGCS 1.1.1 (and all egcs in fact). It makes sure
  > that you can use -z flags when using shared libraries, and that crt1.o
  > isn't linked in if you are using gcc -G to create a shared library.
Can you give a little more info on what this patch is trying to accomplish?

ie, I see that we only pass "-z text" to the linker if the user hasn't provided
a -z argument.  But what does that actually do?  I tried to look at gnu-ld's
docs to find out what the purpose of "-z text"  was, but it's "ignored for
Solaris compatibility"

Similarly, why do we not want [gm]crt1.o linked into shared libraries?

jeff


More information about the Gcc-patches mailing list