imgtools/romtools/rombuild/r_rom.cpp
changeset 617 3a747a240983
parent 590 360bd6b35136
child 631 9435b9008a58
--- a/imgtools/romtools/rombuild/r_rom.cpp	Wed Jul 14 14:50:01 2010 +0100
+++ b/imgtools/romtools/rombuild/r_rom.cpp	Tue Jul 20 15:02:28 2010 +0800
@@ -460,14 +460,16 @@
 
 	if(gPagedRom)
 		{ 
-		gDepInfoFile = iObey->iRomFileName; 
 		iObey->SetArea().DefaultArea()->SortFilesForPagedRom();
 		// exception search table needs to go at start of ROM to make it not demand paged...
 		addr = ReserveRomExceptionSearchTable(addr,exceptionSearchTable);
 		}
-	else if(gGenDepGraph)
+
+	if(gGenDepGraph)
 		{
-			Print(EWarning, "Not dependence information in an unpaged ROM.");
+			Print(ELog, "Generate dependence information in ROM.");
+			gDepInfoFile = iObey->iRomFileName; 
+			iObey->SetArea().DefaultArea()->WriteDependenceGraph();
 		}
 
 	addr=WriteDirectory(addr, aHeader);