Bug 134514 - [binutils] Add '-z lazy' to ld
Bug#: 134514 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: hardened@gentoo.org Reported By: kevquinn@gentoo.org
Component: Hardened
URL:  http://sourceware.org/ml/binutils/2006-06/msg00190.html
Summary: [binutils] Add '-z lazy' to ld
Keywords:  
Status Whiteboard: 
Opened: 2006-05-27 05:42 0000
Description:   Opened: 2006-05-27 05:42 0000
Had trouble getting autotools to accept '-nonow' and pass it to gcc when
linking the .so - it gets passed when generating the .la but not the .so. 
However it does pass '-Wl,<blah>' properly, so I figured it'd be easier to add
'-z nonow' to ld.
Patch to follow.

------- Comment #1 From solar 2006-05-27 05:44:03 0000 -------
I had a patch todo this at one point but I lost it. Lets see if yours is better
;)

------- Comment #2 From Kevin F. Quinn (RETIRED) 2006-05-27 05:45:47 0000 -------
Created an attachment (id=87638) [details]
Add '-z nonow' support to ld

------- Comment #3 From solar 2006-05-27 06:14:57 0000 -------
Looks good. md5sum even probably matched what I had before.
This should probably be sent upstream also as it just makes sense.

------- Comment #4 From SpanKY 2006-06-03 22:22:21 0000 -------
yes, please get this added upstream before our binutils

------- Comment #5 From Michal Suchanek 2006-06-13 05:36:53 0000 -------
please, add the patch to allow building the X server on hadrened.

------- Comment #6 From Kevin F. Quinn (RETIRED) 2006-06-13 23:33:18 0000 -------
Woohoo :)  Upstream accepted the change, with a modification; the option is '-z
lazy' not '-z nonow'.

------- Comment #7 From Kevin F. Quinn (RETIRED) 2006-06-13 23:36:20 0000 -------
Created an attachment (id=89116) [details]
Patch accepted upstream against HEAD

This is the patch that was accepted.  It may well apply with fuzz to older
versions but I'll check and supply a patch against 2.16.1 if necessary.

------- Comment #8 From SpanKY 2006-06-14 21:57:52 0000 -------
added to 2.16.94

i'll just wait until the next cvs snapshot for the 2.17.xx ebuilds

------- Comment #9 From SpanKY 2006-06-29 20:12:10 0000 -------
2.16.1-r3 in portage now too with the patch so solar will get off my back

------- Comment #10 From solar 2006-06-29 23:39:25 0000 -------
I'm not done with you yet.. You forgot to upload the patchball :p