btashton edited a comment on issue #3737:
URL:
https://github.com/apache/incubator-nuttx/issues/3737#issuecomment-846632735
There must be an issue with the sym value as we already should be handing
that.
```
#ifdef ARCH_BIG_ENDIAN
saved = temp = (int32_t) nxflat_swap32(*target);
#else
saved = temp = *target;
#endif
/* Mask and sign extend */
temp &= how_to->src_mask;
temp <<= (32 - how_to->bitsize);
temp >>= (32 - how_to->bitsize);
/* Offset */
temp += (sym_value + rel_section->vma) >> how_to->rightshift;
/* Mask upper bits from rollover */
temp &= how_to->dst_mask;
/* Replace data that was masked */
temp |= saved & (~how_to->dst_mask);
```
And from the very verbose debug output from ldnxflat
```
rel 3 : sym [ dummyfunc] s_addr @ 00000018 val 00000000-00000000
rel 00000000 how R_ARM_ABS32
Performing ABS32 link at addr 00000018 [00000000] to sym 'dummyfunc'
[00000000]
Original location 0xee9088 is 00000000 rsh 0 sz 2 bit 32 rel 0 smask
ffffffff dmask ffffffff off 0
Modified location: 00000000
Sym section .text is CODE
Symbol 'dummyfunc' lies in I-Space
relocs[3]: type: 0 offset: 0000005c
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]