diff --git a/libunwind/src/AddressSpace.hpp b/libunwind/src/AddressSpace.hpp --- a/libunwind/src/AddressSpace.hpp +++ b/libunwind/src/AddressSpace.hpp @@ -432,8 +432,8 @@ return false; } -int findUnwindSectionsByPhdr(struct dl_phdr_info *pinfo, size_t pinfo_size, - void *data) { +static int findUnwindSectionsByPhdr(struct dl_phdr_info *pinfo, + size_t pinfo_size, void *data) { auto cbdata = static_cast(data); if (pinfo->dlpi_phnum == 0 || cbdata->targetAddr < pinfo->dlpi_addr) return 0; @@ -482,7 +482,8 @@ // Given all the #ifdef's above, the code here is for // defined(LIBUNWIND_ARM_EHABI) -int findUnwindSectionsByPhdr(struct dl_phdr_info *pinfo, size_t, void *data) { +static int findUnwindSectionsByPhdr(struct dl_phdr_info *pinfo, size_t, + void *data) { auto *cbdata = static_cast(data); bool found_obj = false; bool found_hdr = false;