Do not search for crt0.o when --nostdlib
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 27 Jul 2003 00:13:40 +0000 (00:13 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 27 Jul 2003 00:13:40 +0000 (00:13 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2778 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCmain.c

index b457b2f12c754ecbb082f0bc630dc148be43ac43..f0eac4ecfceebd9a5a5d27cfca76fcdeffcb8756 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-26  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
+
+    *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
+
 2003-07-24  Bernhard Held <bernhard@bernhardheld.de>
 
        * src/SDCCicode.c (operandOperation): really fixed problem with bitops
index 9403075a4345df24f1c81aef6ecc68963c17d945..ea98540c91ec5e9b1679a82fa83e7c1f1161c4e5 100644 (file)
@@ -1483,7 +1483,8 @@ linkEdit (char **envp)
   /*For the z80 and gbz80 ports, try to find where crt0.o is...
   It is very important for this file to be first on the linking proccess
   so the areas are set in the correct order, expecially _GSINIT*/
-  if ((TARGET_IS_Z80 || TARGET_IS_GBZ80) && !options.no_std_crt0) /*For the z80, gbz80*/
+  if ((TARGET_IS_Z80 || TARGET_IS_GBZ80) &&
+      !options.no_std_crt0 && !options.nostdlib) /*For the z80, gbz80*/
   {
       char crt0path[PATH_MAX];
       FILE * crt0fp;