Skip to content

Commit

Permalink
Avoid symbols with empty name when arm/thumb
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarofe committed Sep 3, 2017
1 parent 2bc8518 commit 85f0f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/bin/p/bin_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ static RList* symbols(RBinFile *arch) {
ptr->size = symbol[i].size;
ptr->ordinal = symbol[i].ordinal;
setsymord (bin, ptr->ordinal, ptr);
if (bin->ehdr.e_machine == EM_ARM) {
if (bin->ehdr.e_machine == EM_ARM && *ptr->name) {
_set_arm_thumb_bits (bin, &ptr);
}
r_list_append (ret, ptr);
Expand Down

0 comments on commit 85f0f75

Please sign in to comment.