From: Martin Str|mberg Message-Id: <200210201632.g9KGWRM14529@speedy.ludd.luth.se> Subject: Minor stub size optimisation To: DJGPP-WORKERS Date: Sun, 20 Oct 2002 18:32:27 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL78 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com 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