From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16615 invoked by alias); 25 Feb 2011 18:11:13 -0000 Received: (qmail 16606 invoked by uid 22791); 25 Feb 2011 18:11:12 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from rcsinet10.oracle.com (HELO rcsinet10.oracle.com) (148.87.113.121) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Feb 2011 18:11:07 +0000 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p1PIAf3g008176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 25 Feb 2011 18:10:42 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p1PIAbrJ027914; Fri, 25 Feb 2011 18:10:37 GMT Received: from abhmt003.oracle.com by acsmt353.oracle.com with ESMTP id 1038614091298657390; Fri, 25 Feb 2011 10:09:50 -0800 Received: from dhcp-santaclara18-1fl-west-10-132-141-79.usdhcp.oraclecorp.com (/10.132.141.79) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 25 Feb 2011 10:09:49 -0800 Message-ID: <4D67F06F.7010503@oracle.com> Date: Fri, 25 Feb 2011 18:11:00 -0000 From: Chris Quenelle User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Jakub Jelinek CC: Tristan Gingold , binutils@sourceware.org Subject: Re: Sun/Oracle C++ compiler patch References: <4D66F521.8010902@oracle.com> <50CDB2D0-36A5-48E2-94FE-91F7032F5B0A@adacore.com> <20110225121917.GK13037@sunsite.ms.mff.cuni.cz> In-Reply-To: <20110225121917.GK13037@sunsite.ms.mff.cuni.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00316.txt.bz2 On Friday February 25 4:19AM, Jakub Jelinek wrote: > 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 Jakub: I believe our fix was made by just copying the way gcc_except_table is treated. Our sections see to be writable in the a.out, I've emailed our C++ team to ask if we do runtime relocations. (ugh) Tristan: I'll add a comment and repost the patch when I resolve Jakub's question. Thanks! --chris