HA: [PATCH] D15712: [ELF] - implemented --eh-frame-hdr command line option.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 22 09:36:11 PST 2015

On Tue, Dec 22, 2015 at 06:44:34AM -0800, George Rimar wrote:
> >On Tue, Dec 22, 2015 at 12:38:00PM +0000, George Rimar via llvm-commits wrote:
> >> Request creation of ".eh_frame_hdr" section and ELF "PT_GNU_EH_FRAME" segment header.
> >
> >Actually, I would favor making this the default and effectively only implementing
> >the negative version. I.e.: always create PT_GNU_EH_FRAME unless
> >explicitly requested.
> >
> >Does anything actually use the section? The segment header entry is for
> >primarily for programs like the dynamic linker, but I'm not aware of
> >anything using the section.
> >
> >Joerg
> Thats probably good idea to make it default.
> Not sure I correctly understood your question about who uses the section.
> Section itself contains the sorted lookup table. So it is used by
> runtime unwinder. Segment header is required to find that section.

Finalised ELF objects have two look up structures -- segments and
sections. I am not talking about the *content*, but adding the named section


More information about the llvm-commits mailing list