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/03/16 03:55:13 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #2063: Fix libcxx for sim/macOS

xiaoxiang781216 commented on pull request #2063:
URL: https://github.com/apache/incubator-nuttx/pull/2063#issuecomment-799925357


   Not yet, but the keypoint for macOS/Linux is same: how to avoid the host startup code initialize NuttX's c++ constructor. 
   The approach selected on Linux is to rename the init section name in linker script on the fly, so we don't need make any special change to NuttX initializition code.
   Your solution is modified the init section at runtime to bypass the host startup code, which require to patch the code inside NuttX.
   If it's hard to modify the linker script on macOS, how about we instruct the linker rename the init section name? as far as I know, binutils tools support rename the section, and clang linker(https://lld.llvm.org/) claim it fully compatible with gnu linker, so it look  doable.


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