patacongo commented on issue #16484: URL: https://github.com/apache/nuttx/issues/16484#issuecomment-2940619316
> If I mount binfs at /bin, should I be able run builtin apps via nsh by calling them as /bin/appname? It has been so long since I have worked on the project, so I am hesitant to comment. But I believe the answer is NO. Builtin apps are just simple C programs with a main() entry point. They make no sense to the binary loader logic. The binary loader has full responsibility for executing programs in a file system. They may still be executed by NSH using the built-in app logic, but cannot be executed from any file system using the binary loader: 'appname' might work, but '/bin/appname' should not. Binaries within the filesystem can only be executed if they are in an executable format recognized by the binary loader such as ELF. I think that THTTP uses the binary loader to execute CGI programs, but I don't remember that logic well. -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org