This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR gold/14675: No eh_frame info registered in exception_static_test
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: Ian Lance Taylor <iant at google dot com>, Roland McGrath <roland at hack dot frob dot com>, Alan Modra <amodra at gmail dot com>, Binutils <binutils at sourceware dot org>, Rafael Ãvila de EspÃndola <rafael dot espindola at gmail dot com>
- Date: Mon, 9 Mar 2015 10:22:23 -0700
- Subject: Re: PATCH: PR gold/14675: No eh_frame info registered in exception_static_test
- Authentication-results: sourceware.org; auth=none
- References: <20140331200446 dot A09B074430 at topped-with-meat dot com> <CAKOQZ8x19YZ_oyJXyxe9JST4nfaG8dDvVrdf-vmgkNWydrpsrw at mail dot gmail dot com> <20140331214025 dot E61517447E at topped-with-meat dot com> <CAKOQZ8x1W0YxJSq+X74EjMj7_02uTZq82qzhmF=oQ-cTd4S1mQ at mail dot gmail dot com> <CAHACq4oRKDGKAUu3octDCxKg2EueCyf8kHWj0t8g9+LmE3JagQ at mail dot gmail dot com> <20140910225238 dot 0B6362C39CF at topped-with-meat dot com> <CAKOQZ8zW_zbR1Tog6HWak9T4d9gXMd9iK=PenQq2E5u-kiNr6Q at mail dot gmail dot com> <20141220135811 dot GA7161 at gmail dot com> <CAHACq4r6f_dGg5fB=mcrdcQMHcERRVnTBVyJTSrh8YTsWCNTBQ at mail dot gmail dot com> <20150107131655 dot GA7818 at gmail dot com> <20150107144300 dot GA498 at gmail dot com> <CAHACq4qAXVM3RTmuu2yf6qe+iwkhXzzeycYY34fkjpOdWp3=-g at mail dot gmail dot com> <CAMe9rOovN+kmzU=0b1L3Gwq-AbHm5Y=YKy1LdOHw35G9PR8cUQ at mail dot gmail dot com> <CAMe9rOoA+KFRi=gm4ui8iPP+y17G5hbsyannwyB0QCJqAnVG0g at mail dot gmail dot com> <CAHACq4ojEwA+BXrRm8U_QNoXkxHmA0KY7kib=6wFQNjOmEMTWA at mail dot gmail dot com>
On Mon, Mar 9, 2015 at 10:16 AM, Cary Coutant <ccoutant@google.com> wrote:
>> Any progress?
>
> I've committed the attached patch to fix this problem by delaying the
> attachment of the optimized .eh_frame sections to the output section
> until we see the end marker section (or to the end of pass 1 if we
> never see an end marker).
>
> -cary
>
>
> 2015-03-09 Cary Coutant <ccoutant@google.com>
>
> gold/
> PR gold/14675
> * ehframe.cc (Eh_frame::add_ehframe_input_section): Change return type;
> return enum indicating whether .eh_frame section is empty, optimizable,
> unrecognized, or an end marker. Adjust explicit instantiations.
> * ehframe.h (Eh_frame::Eh_frame_section_disposition): New enum type.
> (Eh_frame::add_ehframe_input_section): Change return type.
> * gold.cc (queue_middle_tasks): Call Layout::finalize_eh_frame_section.
> * layout.cc (Layout::layout_eh_frame): Don't add optimized sections
> to the .eh_frame output section until we see the end marker.
> (Layout::finalize_eh_frame_section): New.
> * layout.h: (Layout::finalize_eh_frame_section): New.
Thanks.
--
H.J.