From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16681 invoked by alias); 12 Jun 2006 17:51:55 -0000 Received: (qmail 16615 invoked by uid 22791); 12 Jun 2006 17:51:50 -0000 X-Spam-Check-By: sourceware.org Received: from mail-relay-1.tiscali.it (HELO mail-relay-1.tiscali.it) (213.205.33.41) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 12 Jun 2006 17:50:53 +0000 Received: from c1358217.kevquinn.com (84.222.85.17) by mail-relay-1.tiscali.it (7.3.104) id 448942D900054932; Mon, 12 Jun 2006 19:50:50 +0200 Date: Mon, 12 Jun 2006 18:49:00 -0000 From: "Kevin F. Quinn" To: binutils@sourceware.org Cc: toolchain@gentoo.org Subject: Adding -z nonow to complement -z now Message-ID: <20060612200003.1cc84ee3@c1358217.kevquinn.com> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.12; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_pxOq4k21LPKrkqwYsvD3ZBG; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00191.txt.bz2 --Sig_pxOq4k21LPKrkqwYsvD3ZBG Content-Type: multipart/mixed; boundary=MP_4wwj9ePtsdTcCZRC_ShwiRJ --MP_4wwj9ePtsdTcCZRC_ShwiRJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 722 Hi. Attached is a little patch that adds '-z nonow' as the opposite of '-z now'. Could it be considered for inclusion, please? Although some might consider it pointless, it would be very useful to us (Gentoo Hardened project). We flip the default when building with gcc to set -z now by default. Our current method of undoing this (which we need to do very occasionally) is via an extra option handled in a gcc specs file; the downside here is that libtool in particular filters our option because it doesn't recognise it. With this, we can pass '-Wl,-z,nonow' in LDFLAGS and libtool pays attention. If there's anything further I need to do to make this acceptable, please let me know. Thanks --=20 Kevin F. Quinn --MP_4wwj9ePtsdTcCZRC_ShwiRJ Content-Type: text/x-patch; name=binutils-060612-znonow.patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=binutils-060612-znonow.patch Content-length: 573 Trivial patch to add "-z nonow" as an inverse to "-z now" --- ld/emultempl/elf32.em.orig 2006-06-03 04:45:26.000000000 +0200 +++ ld/emultempl/elf32.em 2006-06-12 19:51:13.000000000 +0200 @@ -1826,6 +1826,11 @@ link_info.flags |=3D (bfd_vma) DF_BIND_NOW; link_info.flags_1 |=3D (bfd_vma) DF_1_NOW; } + else if (strcmp (optarg, "nonow") =3D=3D 0) + { + link_info.flags &=3D ~((bfd_vma) DF_BIND_NOW); + link_info.flags_1 &=3D ~((bfd_vma) DF_1_NOW); + } else if (strcmp (optarg, "origin") =3D=3D 0) { link_info.flags |=3D (bfd_vma) DF_ORIGIN; --MP_4wwj9ePtsdTcCZRC_ShwiRJ-- --Sig_pxOq4k21LPKrkqwYsvD3ZBG Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc Content-length: 191 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEjauo9G2S8dekcG0RArNDAJ47EL0Dq00uHL9I66kK7/dBbEBiaQCg2oeI rSg0I+awVIQTkxLVG6rxvsY= =kWeG -----END PGP SIGNATURE----- --Sig_pxOq4k21LPKrkqwYsvD3ZBG--