From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22226 invoked by alias); 13 Jun 2011 20:54:00 -0000 Received: (qmail 22194 invoked by uid 22791); 13 Jun 2011 20:53:58 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,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) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Jun 2011 20:53:44 +0000 Received: from wpaz17.hot.corp.google.com (wpaz17.hot.corp.google.com [172.24.198.81]) by smtp-out.google.com with ESMTP id p5DKrhx5001422 for ; Mon, 13 Jun 2011 13:53:43 -0700 Received: from pxi6 (pxi6.prod.google.com [10.243.27.6]) by wpaz17.hot.corp.google.com with ESMTP id p5DKq97w030287 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 13 Jun 2011 13:53:42 -0700 Received: by pxi6 with SMTP id 6so2801319pxi.17 for ; Mon, 13 Jun 2011 13:53:42 -0700 (PDT) Received: by 10.68.8.105 with SMTP id q9mr2476863pba.3.1307998422459; Mon, 13 Jun 2011 13:53:42 -0700 (PDT) Received: from coign.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) by mx.google.com with ESMTPS id f3sm4938611pbj.0.2011.06.13.13.53.40 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 13:53:41 -0700 (PDT) From: Ian Lance Taylor To: Richard Henderson Cc: Jakub Jelinek , Richard Henderson , libc-alpha@sourceware.org, binutils@sourceware.org, gdb@sourceware.org, Mark Wielaard , Frank Eigler Subject: Re: RFC: Unwind info for PLT References: <20110610074524.GR17079@tyan-ft48-01.lab.bos.redhat.com> <4DF23519.7050607@twiddle.net> <20110613171352.GY11563@sunsite.ms.mff.cuni.cz> <4DF64A01.5030403@redhat.com> Date: Mon, 13 Jun 2011 20:54:00 -0000 In-Reply-To: <4DF64A01.5030403@redhat.com> (Richard Henderson's message of "Mon, 13 Jun 2011 10:33:53 -0700") 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 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00098.txt.bz2 Richard Henderson writes: > On 06/13/2011 10:13 AM, Jakub Jelinek wrote: >> Yeah, easier to write and easier to change. Anyway, if you prefer to do >> it in ld, I can try to do it there. Just a question, should it be done >> unconditionally, or guarded with some ld cmdline option (either existing one, like >> abuse --eh-frame-hdr for it, or a new one)? > > I don't have a real preference. I could see abusing --eh-frame-hdr makes sense. I believe the default should be to generate the additional new unwind information. The only people who would not want it would be people who want to minimize their binary size. I also don't think this has anything to do with --eh-frame-hdr, which simply directs the linker to create a PT_GNU_EH_FRAME program header. So I think there should be a new linker option to *not* generate unwind info, and we should have -fno-unwind-tables pass that option to a linker which understands it. Ian