From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,463f43cb921b8322 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!t20g2000prf.googlegroups.com!not-for-mail From: ytomino Newsgroups: comp.lang.ada Subject: Re: -dead_strip and exception handling Date: Thu, 25 Aug 2011 12:46:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: <446825c8-091b-4083-853e-ca9ed154ab43@t20g2000prf.googlegroups.com> References: NNTP-Posting-Host: 114.150.104.24 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1314301570 3746 127.0.0.1 (25 Aug 2011 19:46:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 25 Aug 2011 19:46:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t20g2000prf.googlegroups.com; posting-host=114.150.104.24; posting-account=Mi71UQoAAACnFhXo1NVxPlurinchtkIj User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKRUAELSC X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:21679 Date: 2011-08-25T12:46:10-07:00 List-Id: I found something. gcc-4.5 outputs labels of error frames (_funcname.eh). gcc-4.6 does not output labels of error frames. ld of leopard use labels of error frames to link __eh_frame section. However, if without -dead_strip, ld links all contents of *.o. So it works fine. ld of snow leopard (or lion) is upgraded. it has been linked with libunwind. Probably it can find error frames without labels and output right __eh_frame section. As a result, only in case of combination "ld of leopard", "- dead_strip" and "*.o output by gcc-4.6", exception handlers are ignored. Thank you.