Skip to content

Commit

Permalink
Merge pull request iovisor#1664 from iovisor/yhs_dev
Browse files Browse the repository at this point in the history
permit symbol resulotion for function with size 0
  • Loading branch information
4ast committed Apr 5, 2018
2 parents 91f04f0 + 5c32691 commit 5761675
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cc/bcc_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ static int list_in_scn(Elf *e, Elf_Scn *section, size_t stridx, size_t symsize,
continue;

uint32_t st_type = ELF_ST_TYPE(sym.st_info);
if (sym.st_size == 0 && (st_type == STT_FUNC || st_type == STT_GNU_IFUNC))
continue;
if (!(option->use_symbol_type & (1 << st_type)))
continue;

Expand Down

0 comments on commit 5761675

Please sign in to comment.