casaroli commented on code in PR #20131:
URL: https://github.com/apache/nuttx/pull/20131#discussion_r4110947588
##########
libs/libc/elf/elf_remove.c:
##########
@@ -150,6 +167,24 @@ int libelf_uninit(FAR struct module_s *modp)
# endif
#endif
}
+ else if (modp->fdpic)
+ {
+ /* An FDPIC object placed its two segments separately. Free each
+ * one. If the text stayed on the media, it was never allocated,
+ * thus leave it.
+ */
+
+ if (modp->xipbase == 0)
+ {
+#if defined(CONFIG_ARCH_USE_TEXT_HEAP)
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]