We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b870b2e commit f56f582Copy full SHA for f56f582
libr/bin/p/bin_elf.inc.c
@@ -253,10 +253,10 @@ static RList* entries(RBinFile *bf) {
253
}
254
255
if (bf->o->sections) {
256
- RListIter *iter;
+ // XXX store / cache sections by name in hashmap
257
+ const RVector *sections = Elf_(load_sections) (bf, bf->o->bin_obj);
258
RBinSection *section;
- // XXX this is slow
259
- r_list_foreach_prev (bf->o->sections, iter, section) {
+ r_vector_foreach_prev (sections, section) {
260
if (!strcmp (section->name, "ehdr")) {
261
ptr->hvaddr = section->vaddr + ptr->hpaddr;
262
break;
0 commit comments