Mail Archives: djgpp-workers/2002/10/20/12:35:04
Index: djgpp/src/stub/stub.asm
===================================================================
RCS file: /cvs/djgpp/djgpp/src/stub/stub.asm,v
retrieving revision 1.4
diff -p -u -r1.4 stub.asm
--- djgpp/src/stub/stub.asm 9 Jun 2001 20:43:06 -0000 1.4
+++ djgpp/src/stub/stub.asm 20 Oct 2002 16:23:50 -0000
@@ -319,13 +319,11 @@ file_is_just_coff: ; cx:dx is offse
t
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
Right,
MartinS
- Raw text -