Skip to content

Commit

Permalink
libmcount:will be rebased...
Browse files Browse the repository at this point in the history
Signed-off-by: ChoKyuWon <[email protected]>
  • Loading branch information
ChoKyuWon committed Sep 1, 2023
1 parent 02f6135 commit 415d4ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,10 @@ static int load_dynsymtab(struct uftrace_symtab *dsymtab, const char *filename,
ret = load_elf_dynsymtab(dsymtab, &elf, offset, flags);
// TODO: needs more sophisticated way to figure out the target elf is no-plt or not.
// Now, the no-plt built binary at least contains 4 PLT functions, so set threshold as 5.
if (dsymtab->nr_sym < plt_threshold)
if (dsymtab->nr_sym < plt_threshold) {
unload_symtab(dsymtab);
ret = arch_load_dynsymtab_noplt(dsymtab, &elf, offset, flags);
}

elf_finish(&elf);
return ret;
Expand Down

0 comments on commit 415d4ca

Please sign in to comment.