casaroli commented on code in PR #19942:
URL: https://github.com/apache/nuttx/pull/19942#discussion_r3917702410
##########
libs/libc/elf/elf_load.c:
##########
@@ -260,6 +260,20 @@ static void libelf_elfsize(FAR struct mod_loadinfo_s
*loadinfo, bool alloc)
}
}
+ /* A library also publishes a descriptor per exported function, for
+ * dlsym(). The dynamic symbol table bounds how many.
+ */
+
+ for (i = 0; i < loadinfo->ehdr.e_shnum; i++)
+ {
+ FAR Elf_Shdr *shdr = &loadinfo->shdr[i];
+
+ if (shdr->sh_type == SHT_DYNSYM && shdr->sh_entsize != 0)
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]