[all-commits] [llvm/llvm-project] 58b33d: [libunwind] fix dynamic .eh_frame registration (#...
SihangZhu via All-commits
all-commits at lists.llvm.org
Mon Jan 15 18:13:23 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 58b33d0301a36900fc641b4b0e110b683064bab8
https://github.com/llvm/llvm-project/commit/58b33d0301a36900fc641b4b0e110b683064bab8
Author: SihangZhu <zhusihang at huawei.com>
Date: 2024-01-16 (Tue, 16 Jan 2024)
Changed paths:
M libunwind/src/libunwind.cpp
Log Message:
-----------
[libunwind] fix dynamic .eh_frame registration (#77185)
Fix this issue
[#76957](https://github.com/llvm/llvm-project/issues/76957)
Libgcc provides __register_frame to register a dynamic .eh_frame
section, while __unw_add_dynamic_eh_frame_section can be used to do the
same in libunwind. However, the address after dynamic .eh_frame are
padding with 0 value, it will be identified as
legal CIE. And __unw_add_dynamic_eh_frame_section will continue to parse
subsequent addresses until illegal memory or other sections are
accessed.
This patch adds length formal parameter for dynamic registration.
More information about the All-commits
mailing list