RFC: Unwind info for PLT

Ian Lance Taylor iant@google.com
Mon Jun 13 20:53:00 GMT 2011


Richard Henderson <rth@redhat.com> writes:

> On 06/13/2011 10:13 AM, Jakub Jelinek wrote:
>> Yeah, easier to write and easier to change.  Anyway, if you prefer to do
>> it in ld, I can try to do it there.  Just a question, should it be done
>> unconditionally, or guarded with some ld cmdline option (either existing one, like
>> abuse --eh-frame-hdr for it, or a new one)?
>
> I don't have a real preference.  I could see abusing --eh-frame-hdr makes sense.

I believe the default should be to generate the additional new unwind
information.  The only people who would not want it would be people who
want to minimize their binary size.  I also don't think this has
anything to do with --eh-frame-hdr, which simply directs the linker to
create a PT_GNU_EH_FRAME program header.  So I think there should be a
new linker option to *not* generate unwind info, and we should have
-fno-unwind-tables pass that option to a linker which understands it.

Ian



More information about the Binutils mailing list