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


##########
libs/libc/machine/arm/armv8-m/arch_elf.c:
##########
@@ -210,28 +210,36 @@ int up_relocate(const Elf32_Rel *rel, const Elf32_Sym 
*sym, uintptr_t addr,
                 "at addr=%08" PRIxPTR " to sym=%p st_value=%08" PRIx32 "\n",
                 addr, sym, sym->st_value);
 
-          if (data->pltrel)
+          if (data->symisdesc)
+            {
+              /* Resolved to a function in another object, which published a
+               * descriptor of its own.  Take both words: the callee has to
+               * run with its own data base, not ours.
+               */
+
+              *desc = *(FAR struct fdpic_desc_s *)sym->st_value;

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