From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4017 invoked by alias); 25 Feb 2011 12:19:55 -0000 Received: (qmail 4004 invoked by uid 22791); 25 Feb 2011 12:19:53 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Feb 2011 12:19:48 +0000 Received: from sunsite.mff.cuni.cz (localhost [127.0.0.1]) by sunsite.mff.cuni.cz (8.14.4/8.14.4) with ESMTP id p1PCJI5u028593; Fri, 25 Feb 2011 13:19:18 +0100 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.14.4/8.14.4/Submit) id p1PCJHVc028590; Fri, 25 Feb 2011 13:19:17 +0100 Date: Fri, 25 Feb 2011 12:19:00 -0000 From: Jakub Jelinek To: Tristan Gingold Cc: Chris Quenelle , binutils@sourceware.org Subject: Re: Sun/Oracle C++ compiler patch Message-ID: <20110225121917.GK13037@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <4D66F521.8010902@oracle.com> <50CDB2D0-36A5-48E2-94FE-91F7032F5B0A@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50CDB2D0-36A5-48E2-94FE-91F7032F5B0A@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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-02/txt/msg00306.txt.bz2 On Fri, Feb 25, 2011 at 10:54:32AM +0100, Tristan Gingold wrote: > > On Feb 25, 2011, at 1:17 AM, Chris Quenelle wrote: > > > (ignore the last copy of this email, it had a terrible subject line) > > > > Hello, > > > > When the Sun/Oracle C++ compiler was ported to Linux, we started > > bundling a patched version of gnu ld to get the necessary treatment > > for our exception range sections. I don't believe anyone has tried to > > offer this patch upstream, and it would really help us out if we could > > use the system linker when running on Linux. I've included the > > contents of the patch at the end of this email. > > Just a suggestion: can you add a comment just before to explain that this is for Sun/Oracle C++ compiler ? This is not > obvious from the section name. > > Is the content of this section documented somewhere ? Also, do you really need ONLY_IF_R{O,W}, i.e. do some older Oracle C++ compiler versions emit the section writable and some later compilers emit it read-only (or vice versa)? .eh_frame with very old gcc versions used to be a writable sections that needed runtime relocation, then gcc changed to a new format which doesn't need any relocations and thus it is desirable to put the section into a read-only segment if all .eh_frame input sections are read-only. Jakub