[libunwind] Make findUnwindSectionsByPhdr static
authorRyan Prichard <rprichard@google.com>
Sun, 23 Aug 2020 00:12:52 +0000 (17:12 -0700)
committerRyan Prichard <rprichard@google.com>
Sun, 23 Aug 2020 00:12:52 +0000 (17:12 -0700)
commit3c1b2e338dfdf4f305b1cb40e2ebcb93a7e470c3
treeaf45413afd866d398b0dd37d1edf408425b96c24
parentcc7bf9bcbfbc8d8188d9fe540c2bc1aee23824af
[libunwind] Make findUnwindSectionsByPhdr static

Currently, this function is present in the dynsym table of
libunwind.so (on ELF targets). Make the function static instead.

In the previous release (LLVM 10.x), this function was instead a lambda
function inside LocalAddressSpace::findUnwindSections, and because
LocalAddressSpace was marked with _LIBUNWIND_HIDDEN, the lambda
function was also a hidden symbol.

Differential Revision: https://reviews.llvm.org/D86372
libunwind/src/AddressSpace.hpp