diff --git a/NEWS.md b/NEWS.md index 82720ad4..2df819a4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -10,6 +10,7 @@ Red Panda C++ Version 2.12 - enhancement: Compile/Run/Debug GAS source files. - enhancement: Compile/Debug GAS source files in project. - enhancement: Keyword completion for asm/GAS files. + - enhancement: If GAS source file has "_start" label, compile it with "-nostartfiles". Red Panda C++ Version 2.11 diff --git a/RedPandaIDE/compiler/filecompiler.cpp b/RedPandaIDE/compiler/filecompiler.cpp index 6a208731..3c5a1956 100644 --- a/RedPandaIDE/compiler/filecompiler.cpp +++ b/RedPandaIDE/compiler/filecompiler.cpp @@ -156,7 +156,7 @@ bool FileCompiler::prepareForCompile() break; } if (hasStart) { - mArguments+=" -nostdlib"; + mArguments+=" -nostartfiles"; } }