PATCH: PR gold/14675: No eh_frame info registered in exception_static_test

Cary Coutant ccoutant@google.com
Mon Mar 9 17:16:00 GMT 2015


> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gold-ehframe-static.patch
Type: application/octet-stream
Size: 9736 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150309/2f93d107/attachment.obj>


More information about the Binutils mailing list