1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-29 10:17:38 +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:
hp.com!davidm 2004-11-16 18:47:39 +00:00
parent 8f3389e9f9
commit 4e731a5572

View file

@ -102,6 +102,11 @@ static int
get_dyn_info_list_addr (unw_addr_space_t as, unw_word_t *dyn_info_list_addr, get_dyn_info_list_addr (unw_addr_space_t as, unw_word_t *dyn_info_list_addr,
void *arg) 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 (); *dyn_info_list_addr = _U_dyn_info_list_addr ();
return 0; 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, char *buf, size_t buf_len, unw_word_t *offp,
void *arg) 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); return _Uelf64_get_proc_name (getpid (), ip, buf, buf_len, offp);
} }