fixed an incorrect error message caused by a bug in relocation handling

This commit is contained in:
László Molnár
2007-05-08 18:23:41 +02:00
parent 40e19293f9
commit 48236ecd3c
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -478,7 +478,7 @@ void PackExe::pack(OutputFile *fo)
for (ic = 0; ic < ih.relocs; ic++)
{
unsigned jc = get_le32(wr+4*ic);
set_le32(wr+4*ic, (jc>>16)*16+(jc&0xffff));
set_le32(wr+4*ic, ((jc>>16)*16+(jc&0xffff)) & 0xfffff);
}
qsort(wr,ih.relocs,4,le32_compare);
relocsize = optimize_relocs(ibuf, ih_imagesize, wr, ih.relocs, w, &has_9a);