=================================================================== RCS file: /cvs/djgpp/djgpp/src/stub/stub.asm,v retrieving revision 1.6 retrieving revision 1.7 diff -p -u -r1.6 -r1.7 --- djgpp/src/stub/stub.asm 2002/10/17 23:45:09 1.6 +++ /cvs/djgpp/djgpp/src/stub/stub.asm 2002/11/30 09:22:26 1.7 @@ -321,13 +321,11 @@ file_is_just_coff: ; cx:dx is offset add eax, ecx mov [text_foffset], eax - mov eax, data_section[s_scnptr] - add eax, ecx - mov [data_foffset], eax + add ecx, data_section[s_scnptr] ; Ok to destroy ecx now: last use. + mov [data_foffset], ecx mov ebx, bss_section[s_vaddr] - mov eax, bss_section[s_size] - add ebx, eax + add ebx, bss_section[s_size] mov eax, 0x00010001 cmp ebx, eax jae @f1