acassis commented on PR #7202:
URL: https://github.com/apache/nuttx/pull/7202#issuecomment-1593225599

   @xiaoxiang781216 I'm getting this error when compiling for sim:ostest:
   ```
   LD:  nuttx
   /usr/bin/ld: nuttx.rel: relocation R_X86_64_16 against `.data' can not be 
used when making a PIE object; recompile with -fPIE
   /usr/bin/ld: failed to set dynamic section sizes: bad value
   collect2: error: ld returned 1 exit status
   make[1]: *** [Makefile:368: nuttx] Error 1
   make: *** [tools/Unix.mk:527: nuttx] Error 2
   ```
   
   Please find attached the modifications I did to fix the "undefined reference 
to `nGlobals' and `globalTable' "
   
[0001-Move-build-globals.sh-to-tools-and-add-modlib_x64_gl.zip](https://github.com/apache/nuttx/files/11759691/0001-Move-build-globals.sh-to-tools-and-add-modlib_x64_gl.zip)
   


-- 
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