1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-09-29 18:09:29 +02:00

Restore the linking when --enable-debug-frame is not specified

This commit is contained in:
Konstantin Belousov 2010-05-29 01:07:40 +03:00
parent 00aed9631b
commit b3757e7792

View file

@ -210,6 +210,7 @@ _UPTi_find_unwind_table (struct UPT_info *ui, unw_addr_space_t as,
} }
} }
if (!ptxt || !peh_hdr) if (!ptxt || !peh_hdr)
#ifdef CONFIG_DEBUG_FRAME
{ {
/* No .eh_frame found, try .debug_frame. */ /* No .eh_frame found, try .debug_frame. */
struct dl_phdr_info info; struct dl_phdr_info info;
@ -235,6 +236,9 @@ _UPTi_find_unwind_table (struct UPT_info *ui, unw_addr_space_t as,
else else
return NULL; return NULL;
} }
#else
return NULL;
#endif
if (pdyn) if (pdyn)
{ {