imgtools/romtools/rombuild/r_rom.cpp
changeset 714 e5a58c351011
parent 694 c3fbb20e86f0
--- a/imgtools/romtools/rombuild/r_rom.cpp	Tue Nov 30 14:05:41 2010 +0800
+++ b/imgtools/romtools/rombuild/r_rom.cpp	Tue Nov 30 17:14:57 2010 +0800
@@ -37,6 +37,7 @@
 extern TInt gThreadNum;
 extern string gDepInfoFile;
 extern TBool gGenDepGraph;
+extern TBool gGenBsymbols;
 
 TUint32 DeflateCompressCheck(char *bytes,TInt size,ostream &os);
 void DeflateCompress(char *bytes,TInt size,ostream &os);
@@ -1307,7 +1308,7 @@
 		}
 
 	TInt fileCount=0;
-	if(gGenSymbols && !iSymGen) {
+	if((gGenSymbols || gGenBsymbols )&& !iSymGen) {
 		string filename(iObey->GetFileName());
 		iSymGen = SymbolGenerator::GetInstance();
 		iSymGen ->SetImageType(ERomImage);
@@ -1439,6 +1440,9 @@
 			TPlacedEntry context ;
 			context.iFileName = current->iFileName ;
 			context.iDataAddress = savedAddr ;
+			char* fullname = current->GetSystemFullName();
+			context.iDevFileName = fullname;
+			delete fullname;
 			iSymGen->AddEntry(context); 
 		}
 		return;
@@ -1454,6 +1458,9 @@
 			TPlacedEntry context ;
 			context.iFileName = current->iFileName ;
 			context.iDataAddress = savedAddr ;
+			char* fullname = current->GetSystemFullName();
+			context.iDevFileName = fullname;
+			delete fullname;
 			iSymGen->AddEntry(context); 
 		}		
 		return ;
@@ -1517,6 +1524,9 @@
 	if(iSymGen){
 		TPlacedEntry context  ;
 		context.iFileName = current->iFileName ;		
+		char* fullname = current->GetSystemFullName();
+		context.iDevFileName = fullname;
+		delete fullname;
 		context.iTotalSize = section1size;
 		context.iCodeAddress = header->iCodeAddress; 
 		context.iDataAddress = header->iDataAddress;