You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/05/23 21:11:02 UTC

[GitHub] [incubator-nuttx] btashton commented on issue #3737: nxflat build and run-time errors

btashton commented on issue #3737:
URL: https://github.com/apache/incubator-nuttx/issues/3737#issuecomment-846624945


   Looking at the relocations in r1, would we not expect to see a `R_ARM_THM_GOT_BREL12`
   ```
   ❯ readelf -r  ../apps/examples/nxflat/tests/struct/struct.r1 
   
   Relocation section '.rel.text' at offset 0x700 contains 3 entries:
    Offset     Info    Type            Sym.Value  Sym. Name
   00000006  0000241e R_ARM_THM_JUMP24  00000000   printf
   0000000c  0000111a R_ARM_GOT_BREL    00000000   .LC0
   00000018  0000291a R_ARM_GOT_BREL    00000000   dummy
   
   Relocation section '.rel.text.startup' at offset 0x718 contains 26 entries:
    Offset     Info    Type            Sym.Value  Sym. Name
   00000008  0000240a R_ARM_THM_CALL    00000000   printf
   0000000c  0000270a R_ARM_THM_CALL    00000011   getstruct
   0000001a  0000240a R_ARM_THM_CALL    00000000   printf
   00000032  0000240a R_ARM_THM_CALL    00000000   printf
   00000050  0000240a R_ARM_THM_CALL    00000000   printf
   0000006e  0000240a R_ARM_THM_CALL    00000000   printf
   0000008c  0000240a R_ARM_THM_CALL    00000000   printf
   000000a6  0000240a R_ARM_THM_CALL    00000000   printf
   000000c4  0000240a R_ARM_THM_CALL    00000000   printf
   000000d4  0000240a R_ARM_THM_CALL    00000000   printf
   000000e2  0000240a R_ARM_THM_CALL    00000000   printf
   00000100  0000141a R_ARM_GOT_BREL    00000022   .LC3
   00000104  0000151a R_ARM_GOT_BREL    00000037   .LC4
   00000108  0000131a R_ARM_GOT_BREL    0000001d   .LC2
   0000010c  0000161a R_ARM_GOT_BREL    0000004e   .LC5
   00000110  0000251a R_ARM_GOT_BREL    00000000   dummy_scalar
   00000114  0000171a R_ARM_GOT_BREL    00000063   .LC6
   00000118  0000181a R_ARM_GOT_BREL    00000079   .LC7
   0000011c  0000231a R_ARM_GOT_BREL    00000000   dummy_struct
   00000120  0000191a R_ARM_GOT_BREL    0000008f   .LC8
   00000124  00001a1a R_ARM_GOT_BREL    000000a5   .LC9
   00000128  0000121a R_ARM_GOT_BREL    00000018   .LC1
   0000012c  0000261a R_ARM_GOT_BREL    00000001   dummyfunc
   00000130  00001b1a R_ARM_GOT_BREL    000000be   .LC10
   00000134  00001c1a R_ARM_GOT_BREL    000000d4   .LC11
   00000138  00001d1a R_ARM_GOT_BREL    000000ec   .LC12
   
   Relocation section '.rel.data.rel.ro' at offset 0x7e8 contains 3 entries:
    Offset     Info    Type            Sym.Value  Sym. Name
   00000004  00002502 R_ARM_ABS32       00000000   dummy_scalar
   00000008  00002302 R_ARM_ABS32       00000000   dummy_struct
   0000000c  00002602 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:
users@infra.apache.org