Bug 10141

Summary: gold should support the -z options {no,}{lazy,now}
Product: binutils Reporter: Mike Frysinger <vapier>
Component: goldAssignee: Ian Lance Taylor <ian>
Status: RESOLVED FIXED    
Severity: normal CC: bug-binutils
Priority: P2    
Version: 2.20   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Mike Frysinger 2009-05-10 22:00:43 UTC
some packages link with -Wl,-z,lazy so that they know they'll get lazy bindings
(in case the toolchain is configured with -Wl,-z,now by default). 
unfortunately, gold doesnt have an option to control this DT in the final ELF.
Comment 1 Sourceware Commits 2009-06-22 20:23:38 UTC
Subject: Bug 10141

CVSROOT:	/cvs/src
Module name:	src
Changes by:	ian@sourceware.org	2009-06-22 20:23:21

Modified files:
	gold           : ChangeLog layout.cc options.h 

Log message:
	PR 10141
	* options.h (class General_options): Add -z lazy and -z now.  Sort
	-z options into alphabetical order.
	* layout.cc (Layout::finish_dynamic_section): Handle -z now.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&r1=1.241&r2=1.242
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/layout.cc.diff?cvsroot=src&r1=1.126&r2=1.127
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/options.h.diff?cvsroot=src&r1=1.99&r2=1.100

Comment 2 Ian Lance Taylor 2009-06-22 20:24:31 UTC
Fixed.  Thanks for reporting it.