casaroli commented on code in PR #20089:
URL: https://github.com/apache/nuttx/pull/20089#discussion_r3961773624


##########
arch/arm/include/elf.h:
##########
@@ -247,10 +264,75 @@
 #define DT_ARM_PREEMPTMAP        0x70000002
 #define DT_ARM_RESERVED2         0x70000003
 
+/* Loader state the FDPIC relocations need: the object's data base, and the
+ * descriptor pool cursor, which must survive from one relocation to the
+ * next.  It arrives through the arch_data channel.
+ */
+
+/* The relocations that only an FDPIC object may use.  Seeing one in an
+ * object whose OS/ABI byte does not say FDPIC means the marker was lost.
+ */
+
+#define ARCH_ELF_RELOC_ISFDPIC(t)                    \
+  ((t) == R_ARM_FUNCDESC || (t) == R_ARM_FUNCDESC_VALUE)
+
+#define ARCH_ELFDATA             1
+
+#define ARCH_ELFDATA_INIT(d, l)          \
+  do                                     \
+    {                                    \
+      (d)->fdpic    = (l)->fdpic;        \
+      (d)->gotbase  = (l)->gotbase;      \
+      (d)->descpool = (FAR struct arm_fdpic_desc_s *)(l)->descpool; \

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]

Reply via email to