From: jesusc Date: Wed, 11 Dec 2002 12:04:59 +0000 (+0000) Subject: When generating aomf51 file, corrected bug in static functions, and a bug X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=347c4f93a45a67e19d6d5438327c447d446db419;p=fw%2Fsdcc When generating aomf51 file, corrected bug in static functions, and a bug when including debug information from the libraries. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2115 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/as/mcs51/lkaomf51.c b/as/mcs51/lkaomf51.c index 7082e675..d100081a 100644 --- a/as/mcs51/lkaomf51.c +++ b/as/mcs51/lkaomf51.c @@ -25,6 +25,7 @@ #define EQ(A,B) !strcmp((A),(B)) #define MEMSIZE 0x10000 +//#define DODUMP 1 typedef struct { @@ -122,7 +123,7 @@ void GetName(char * filepath, char * name) void SaveLinkedFilePath(char * filepath) { int j; - + if(dflag) { infn=realloc(infn, sizeof(_infn)*(numin+1)); @@ -143,7 +144,12 @@ void SaveLinkedFilePath(char * filepath) GetName(infn[numin].PathName, infn[numin].ModuleName); //printf("%s, %s\n", infn[numin].PathName, infn[numin].ModuleName); - numin++; + /*Check if this filename is already in*/ + for(j=0; jf_idp); //Must be the first one... dfp = afile(linkp->f_idp,"cdb",1); //JCF: Nov 30, 2002 if (dfp == NULL) lkexit(1);