btashton commented on issue #3737:
URL:
https://github.com/apache/incubator-nuttx/issues/3737#issuecomment-846626393
Ah I take that back, but it does look like when r2 was linked we moved to
the even offset address
```
❯ readelf -r ../apps/examples/nxflat/tests/struct/struct.r2
Relocation section '.rel.text' at offset 0x8f4 contains 30 entries:
Offset Info Type Sym.Value Sym. Name
00000006 0000281e R_ARM_THM_JUMP24 00000025 printf
0000000c 00000d1a R_ARM_GOT_BREL 00000174 .LC0
00000018 0000371a R_ARM_GOT_BREL 0000000c dummy
00000030 00002218 R_ARM_GOTOFF32 00000004 __dyninfo0000
0000003c 0000280a R_ARM_THM_CALL 00000025 printf
00000040 0000330a R_ARM_THM_CALL 00000011 getstruct
0000004e 0000280a R_ARM_THM_CALL 00000025 printf
00000066 0000280a R_ARM_THM_CALL 00000025 printf
00000084 0000280a R_ARM_THM_CALL 00000025 printf
000000a2 0000280a R_ARM_THM_CALL 00000025 printf
000000c0 0000280a R_ARM_THM_CALL 00000025 printf
000000da 0000280a R_ARM_THM_CALL 00000025 printf
000000f8 0000280a R_ARM_THM_CALL 00000025 printf
00000108 0000280a R_ARM_THM_CALL 00000025 printf
00000116 0000280a R_ARM_THM_CALL 00000025 printf
00000134 0000101a R_ARM_GOT_BREL 00000196 .LC3
00000138 0000111a R_ARM_GOT_BREL 000001ab .LC4
0000013c 00000f1a R_ARM_GOT_BREL 00000191 .LC2
00000140 0000121a R_ARM_GOT_BREL 000001c2 .LC5
00000144 0000291a R_ARM_GOT_BREL 00000000 dummy_scalar
00000148 0000131a R_ARM_GOT_BREL 000001d7 .LC6
0000014c 0000141a R_ARM_GOT_BREL 000001ed .LC7
00000150 0000271a R_ARM_GOT_BREL 00000170 dummy_struct
00000154 0000151a R_ARM_GOT_BREL 00000203 .LC8
00000158 0000161a R_ARM_GOT_BREL 00000219 .LC9
0000015c 00000e1a R_ARM_GOT_BREL 0000018c .LC1
00000160 0000301a R_ARM_GOT_BREL 00000001 dummyfunc
00000164 0000171a R_ARM_GOT_BREL 00000232 .LC10
00000168 0000181a R_ARM_GOT_BREL 00000248 .LC11
0000016c 0000191a R_ARM_GOT_BREL 00000260 .LC12
Relocation section '.rel.data' at offset 0x9e4 contains 4 entries:
Offset Info Type Sym.Value Sym. Name
00000004 00000102 R_ARM_ABS32 00000000 .text
00000010 00002902 R_ARM_ABS32 00000000 dummy_scalar
00000014 00002702 R_ARM_ABS32 00000170 dummy_struct
00000018 00003002 R_ARM_ABS32 00000001 dummyfunc
```
--
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]