From 9976ee248ad8094fb0e12196ef19ffe9735f9f65 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 12 Feb 2023 18:15:41 +0800 Subject: [PATCH] - enhancement: If GAS source file has "_start" label, compile it with "-nostartfiles". --- NEWS.md | 1 + RedPandaIDE/compiler/filecompiler.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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"; } }