[lld] r193662 - [ELF] Implement minimal support for .eh_frame_hdr.

Joerg Sonnenberger joerg at britannica.bec.de
Wed Oct 30 09:58:28 PDT 2013


On Wed, Oct 30, 2013 at 11:10:21AM -0500, Shankar Easwaran wrote:
> On 10/30/2013 7:07 AM, Joerg Sonnenberger wrote:
> >On Tue, Oct 29, 2013 at 07:50:03PM -0500, Shankar Easwaran wrote:
> >>I think generation of the eh_frame_hdr is decided by --eh-frame-hdr
> >>flag isnt it ?
> >>
> >>And GNU_EH_FRAME segment is only relevant when you are only using
> >>GNU tools ?
> >I think it should be enabled for all ELF platforms by default.
> Solaris ELF doesnot have it :(

Don't look at i386, it doesn't create .eh_frame by default either.
Note that the presence of .eh_frame_hdr doesn't add a significant cost
compare to .eh_frame, so yes, if we create .eh_frame, we should as
default also craete .eh_frame_hdr.

Joerg



More information about the llvm-commits mailing list