Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 134514

Summary: [binutils] Add '-z lazy' to ld
Product: Gentoo Linux Reporter: Kevin F. Quinn (RETIRED) <kevquinn>
Component: HardenedAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED FIXED    
Severity: normal CC: hramrach, toolchain
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sourceware.org/ml/binutils/2006-06/msg00190.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Add '-z nonow' support to ld
Patch accepted upstream against HEAD

Description Kevin F. Quinn (RETIRED) gentoo-dev 2006-05-27 05:42:52 UTC
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 solar (RETIRED) gentoo-dev 2006-05-27 05:44:03 UTC
I had a patch todo this at one point but I lost it. Lets see if yours is better ;)
Comment 2 Kevin F. Quinn (RETIRED) gentoo-dev 2006-05-27 05:45:47 UTC
Created attachment 87638 [details, diff]
Add '-z nonow' support to ld
Comment 3 solar (RETIRED) gentoo-dev 2006-05-27 06:14:57 UTC
Looks good. md5sum even probably matched what I had before.
This should probably be sent upstream also as it just makes sense.
Comment 4 SpanKY gentoo-dev 2006-06-03 22:22:21 UTC
yes, please get this added upstream before our binutils
Comment 5 Michal Suchanek 2006-06-13 05:36:53 UTC
please, add the patch to allow building the X server on hadrened.
Comment 6 Kevin F. Quinn (RETIRED) gentoo-dev 2006-06-13 23:33:18 UTC
Woohoo :)  Upstream accepted the change, with a modification; the option is '-z lazy' not '-z nonow'.
Comment 7 Kevin F. Quinn (RETIRED) gentoo-dev 2006-06-13 23:36:20 UTC
Created attachment 89116 [details, diff]
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 SpanKY gentoo-dev 2006-06-14 21:57:52 UTC
added to 2.16.94

i'll just wait until the next cvs snapshot for the 2.17.xx ebuilds
Comment 9 SpanKY gentoo-dev 2006-06-29 20:12:10 UTC
2.16.1-r3 in portage now too with the patch so solar will get off my back
Comment 10 solar (RETIRED) gentoo-dev 2006-06-29 23:39:25 UTC
I'm not done with you yet.. You forgot to upload the patchball :p