This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Remove .eh_frame zero terminators


On Thu, Aug 31, 2017 at 3:35 AM, Alan Modra <amodra@gmail.com> wrote:
> The machinery to do this was there, but not enabled if the terminator
> was the only thing in the section.
>
> We should have seen quite a lot of exception handling failures due to
> ld's nasty LTO support.  It has the habit of adding object files
> extracted from archives after crtend.o, the file that has the
> .eh_frame terminator.  The saving grace is that with --eh-frame-hdr
> there doesn't need to be a scan of section contents (which would
> terminate on hitting the terminator) for an FDE covering a given
> address.

What will happen with -static -flto?  --eh-frame-hdr isn't used with -static.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]