From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20234 invoked by alias); 10 Oct 2002 13:13:57 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 20221 invoked from network); 10 Oct 2002 13:13:55 -0000 Received: from unknown (HELO dennis.enea.se) (192.36.1.67) by sources.redhat.com with SMTP; 10 Oct 2002 13:13:55 -0000 Received: from freja.enea.se by dennis.enea.se (8.9.3/8.9.3) with ESMTP id PAA02453 for ; Thu, 10 Oct 2002 15:15:21 +0200 (MET DST) Received: from enea.se ([172.16.142.37]) by freja.enea.se (Switch-2.0.1/Switch-2.0.1) with ESMTP id g9ADF3V20023; Thu, 10 Oct 2002 15:15:04 +0200 (MET DST) Message-ID: <3DA57D58.4468FCC3@enea.se> Date: Thu, 10 Oct 2002 06:13:00 -0000 From: Stefan Bylund Organization: OSE Systems X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Why eh_frame sections in libgcc.a? Content-Type: multipart/mixed; boundary="------------48ABC52BB97B1C3A9D973B48" X-SW-Source: 2002-10/txt/msg00105.txt.bz2 This is a multi-part message in MIME format. --------------48ABC52BB97B1C3A9D973B48 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 709 When building GCC 3.2 for powerpc-eabi, ".eh_frame" exception handling sections are generated in libgcc.a for the following objects: _divdi3.o _moddi3.o _udivdi3.o _umoddi3.o _udiv_w_sdiv.o _udivmoddi4.o unwind-dw2.o unwind-dw2-fde.o I can understand why such sections are generated for unwind-dw2.o and unwind-dw2-fde.o which are used by libstdc++.a and libsupc++.a but why are they generated for the other integer division related objects? Is there support for throwing C++ exceptions when dividing by zero? What happens with such support in a plain C application? Are these ".eh_frame" sections in libgcc.a unused and harmless when compiling a plain C application and linking it with libgcc.a? /Stefan --------------48ABC52BB97B1C3A9D973B48 Content-Type: text/x-vcard; charset=us-ascii; name="steby.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Stefan Bylund Content-Disposition: attachment; filename="steby.vcf" Content-length: 273 begin:vcard n:Bylund;Stefan tel;cell:+46 709 714 325 tel;work:+46 8 507 143 25 x-mozilla-html:FALSE url:http://www.ose.com org:OSE Systems adr:;;Nytorpsvägen 5;Täby;;183 23;Sweden version:2.1 email;internet:steby@enea.se title:Software Engineer fn:Stefan Bylund end:vcard --------------48ABC52BB97B1C3A9D973B48--