casaroli commented on code in PR #19673:
URL: https://github.com/apache/nuttx/pull/19673#discussion_r3765665644
##########
include/nuttx/lib/elf.h:
##########
@@ -252,6 +264,28 @@ struct mod_loadinfo_s
* skip the copy.
*/
+ /* FDPIC state.
+ *
+ * An FDPIC object places its two PT_LOAD segments independently: the
+ * read-only one is mapped where it already sits on the media and the
+ * writable one is copied to RAM, once per running instance. That is
+ * what lets several instances share one copy of the text.
+ *
+ * fdpic - True if e_ident[EI_OSABI] marked this an FDPIC object.
+ * textpin - True if the read-only segment is held by a filesystem pin
+ * that has to be dropped at unload, rather than by an
+ * address the filesystem simply handed over.
+ */
+
+ bool fdpic;
+ bool textpin;
+
Review Comment:
the difference is that on FDPIC, `.text` and `.data` can have independent
region placement, this flag records `e_ident[EI_OSABI] == ELFOSABI_ARM_FDPIC`
--
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]