From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22441 invoked by alias); 13 Jul 2011 23:07:58 -0000 Received: (qmail 22433 invoked by uid 22791); 13 Jul 2011 23:07:57 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Jul 2011 23:07:42 +0000 Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id p6DN7eKx030116 for ; Wed, 13 Jul 2011 16:07:40 -0700 Received: from iyb11 (iyb11.prod.google.com [10.241.49.75]) by wpaz1.hot.corp.google.com with ESMTP id p6DN7JaN006850 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 13 Jul 2011 16:07:39 -0700 Received: by iyb11 with SMTP id 11so7643217iyb.13 for ; Wed, 13 Jul 2011 16:07:39 -0700 (PDT) Received: by 10.42.83.194 with SMTP id i2mr1648837icl.305.1310598458523; Wed, 13 Jul 2011 16:07:38 -0700 (PDT) Received: from coign.google.com ([2620:0:1000:2301:21c:25ff:fe14:8d86]) by mx.google.com with ESMTPS id x11sm2855367ibd.24.2011.07.13.16.07.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jul 2011 16:07:37 -0700 (PDT) From: Ian Lance Taylor To: binutils@sourceware.org Subject: Re: ld -z options References: <20110713144443.GR26365@bubble.grove.modra.org> Date: Thu, 14 Jul 2011 00:36:00 -0000 In-Reply-To: <20110713144443.GR26365@bubble.grove.modra.org> (Alan Modra's message of "Thu, 14 Jul 2011 00:14:43 +0930") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00136.txt.bz2 Alan Modra writes: > I found today that none of the ld -z options are available on ELF > targets that lack shared lib support (unless the target happens to > provide some target specific options, which is weird). This patch > rearranges the option support code in elf32.em to make a few useful > options generally available, and moves a couple of x86/x86_64 options > out of the general set. I'll commit this after running tests > overnight. While you're looking at this, how would you feel about making the linker give a warning or error when an unrecognized -z option is used? (I've had various gold bug reports about unrecognized -z options for options which GNU ld doesn't recognize either.) Ian