diff --git a/include/tdep-ia64.h b/include/tdep-ia64.h index 7389d3f0..6f74daea 100644 --- a/include/tdep-ia64.h +++ b/include/tdep-ia64.h @@ -211,6 +211,6 @@ extern void *tdep_uc_addr (ucontext_t *uc, unw_regnum_t regnum); extern int tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, unsigned long *segbase, unsigned long *mapoff); -extern struct ia64_global_unwind_state unw; +extern HIDDEN struct ia64_global_unwind_state unw; #endif /* TDEP_IA64_H */ diff --git a/src/ia64/global-ia64.c b/src/ia64/global-ia64.c index 396875df..13bda857 100644 --- a/src/ia64/global-ia64.c +++ b/src/ia64/global-ia64.c @@ -25,7 +25,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "unwind_i.h" -struct ia64_global_unwind_state unw = +HIDDEN struct ia64_global_unwind_state unw = { .needs_initialization = 1, .lock = PTHREAD_MUTEX_INITIALIZER,