c++ - Compile a Standalone Static Executable -


I am trying to compile an executable (ALF file) which does not use dynamic loader. I have created a cross compiler which prepares Amps from Linux to be used on a simulator. I emphasize the Flag-Static-libgcc on the compilation of our Hello CPP file (Hello World Program). Apparently this is not enough though. Because there is still a section in my executable which includes the name / path of the dynamic loader. What flag does I use to make an executable in whatever is needed to run? Do I Need to Rebuild My Cross Compiler?

-static flag?


Comments