Initial support for option '--exact'.

This commit is contained in:
Markus F.X.J. Oberhumer
2006-11-21 17:53:11 +01:00
parent f1a97fecbd
commit 16163bf20b
6 changed files with 21 additions and 0 deletions
+2
View File
@@ -439,6 +439,8 @@ void PackTos::pack(OutputFile *fo)
t = i_text + i_data;
fi->readx(ibuf,t);
// skip symbols
if (i_sym && opt->exact)
throwCantPackExact();
fi->seek(i_sym,SEEK_CUR);
// read relocations + overlay
overlay = file_size - (FH_SIZE + i_text + i_data + i_sym);