mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 00:57:39 +01:00
(get_dyn_info_list_addr): When compiling into libunwind-ia64, declare
_U_dyn_info_list_addr as weak and fail if the symbol remained undefined. (get_static_proc_name): Likewise for _Uelf64_get_proc_name(). (Logical change 1.282)
This commit is contained in:
parent
8f3389e9f9
commit
4e731a5572
1 changed files with 10 additions and 0 deletions
|
@ -102,6 +102,11 @@ static int
|
|||
get_dyn_info_list_addr (unw_addr_space_t as, unw_word_t *dyn_info_list_addr,
|
||||
void *arg)
|
||||
{
|
||||
#ifndef UNW_LOCAL_ONLY
|
||||
# pragma weak _U_dyn_info_list_addr
|
||||
if (!_U_dyn_info_list_addr)
|
||||
return -UNW_ENOINFO;
|
||||
#endif
|
||||
*dyn_info_list_addr = _U_dyn_info_list_addr ();
|
||||
return 0;
|
||||
}
|
||||
|
@ -382,6 +387,11 @@ get_static_proc_name (unw_addr_space_t as, unw_word_t ip,
|
|||
char *buf, size_t buf_len, unw_word_t *offp,
|
||||
void *arg)
|
||||
{
|
||||
#ifndef _UNW_LOCAL_ONLY
|
||||
# pragma weak _Uelf64_get_proc_name
|
||||
if (!_Uelf64_get_proc_name)
|
||||
return -UNW_EINVAL;
|
||||
#endif
|
||||
return _Uelf64_get_proc_name (getpid (), ip, buf, buf_len, offp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue