Skip to content

Commit

Permalink
dwarf: clang doesn't respect the static alias (#102)
Browse files Browse the repository at this point in the history
Clang doesn't respect the static alias, resulting in global instead
of local symbols, and name collisions.  Work around for clang by always
going through the PLT (at a small perf hit)
  • Loading branch information
Dave Watson committed Jan 9, 2019
1 parent 070ae59 commit f90c6f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dwarf/Gfind_proc_info-lsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,17 @@ struct table_entry
#include "os-linux.h"
#endif

#ifndef __clang__
static ALIAS(dwarf_search_unwind_table) int
dwarf_search_unwind_table_int (unw_addr_space_t as,
unw_word_t ip,
unw_dyn_info_t *di,
unw_proc_info_t *pi,
int need_unwind_info, void *arg);
#else
#define dwarf_search_unwind_table_int dwarf_search_unwind_table
#endif

static int
linear_search (unw_addr_space_t as, unw_word_t ip,
unw_word_t eh_frame_start, unw_word_t eh_frame_end,
Expand Down

0 comments on commit f90c6f0

Please sign in to comment.