yamt commented on pull request #2063: URL: https://github.com/apache/incubator-nuttx/pull/2063#issuecomment-799950976
> 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. as i explained earlier in this PR, it doesn't work as far as i know. ---------------------------------------------------------------- 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: us...@infra.apache.org