HomePhabricator

[ELF] - implemented --eh-frame-hdr command line option.

Authored by grimar on Jan 14 2016, 2:30 AM.

Description

[ELF] - implemented --eh-frame-hdr command line option.

--eh-frame-hdr
Request creation of ".eh_frame_hdr" section and ELF "PT_GNU_EH_FRAME" segment header.

Both gold and the GNU linker support an option --eh-frame-hdr which tell them to construct a header for all the .eh_frame sections. This header is placed in a section named .eh_frame_hdr and also in a PT_GNU_EH_FRAME segment. At runtime the unwinder can find all the PT_GNU_EH_FRAME segments by calling dl_iterate_phdr.
This section contains a lookup table for quick binary search of FDEs.
Detailed info can be found here:
http://www.airs.com/blog/archives/462

Differential revision: http://reviews.llvm.org/D15712

llvm-svn: 257753

Details

Committed
grimarJan 14 2016, 2:30 AM
Differential Revision
D15712: [ELF] - implemented --eh-frame-hdr command line option.
Parents
rG3557b882386a: InstructionsTest.cpp: Fix a warning. [-Wsign-compare]
Branches
Unknown
Tags
Unknown