Go to file
George Rimar f6bc65a3b2 Reapply r257753 with fix:
Added check for terminator CIE/FDE which has zero data size.
void EHOutputSection<ELFT>::addSectionAux(
...
 // If CIE/FDE data length is zero then Length is 4, this
 // shall be considered a terminator and processing shall end.
    if (Length == 4)
      break;
...

After this "Bug 25923 - lld/ELF2 linked application crashes if exceptions were used." is fixed for me. Self link of clang also works.

Initial commit message:
[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: 257889
2016-01-15 13:34:52 +00:00
clang Fix a -Wparentheses warning in ASTDiagnostic.cpp. 2016-01-15 05:57:41 +00:00
clang-tools-extra Teach clang-tidy how to upgrade warnings into errors. 2016-01-13 17:36:41 +00:00
compiler-rt [tsan] Fix some tiny errors. 2016-01-15 06:21:46 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc AMDGPU: Add aliases for all VI targets 2015-12-15 18:37:04 +00:00
libcxx Tame a -Wunknown-attributes warning 2016-01-13 23:27:08 +00:00
libcxxabi [WebAssembly] Accomodate wasm's 128-bit long double. 2016-01-13 16:39:30 +00:00
libunwind Replace cmake check for printf with a check for fopen. 2015-12-10 00:47:08 +00:00
lld Reapply r257753 with fix: 2016-01-15 13:34:52 +00:00
lldb The ASAN report fetching code had two latent bugs: 2016-01-15 01:03:50 +00:00
llgo [llgo] Force exporting __morestack from llgoi 2015-11-27 04:46:46 +00:00
llvm Revert "[SLP] Vectorize the index computations of getelementptr instructions." 2016-01-15 13:10:46 +00:00
openmp Don't use __DATE__ or __TIME__; it breaks release builds (PR26145) 2016-01-14 23:18:20 +00:00
polly Prepare unit tests for update to ISL 0.16 2016-01-15 00:48:42 +00:00