Mail Archives: djgpp/1998/06/05/22:16:01
>djgpp stub clears the "BSS" section. This causes a lot
This is AFAIK required.  You always assume that an unitialized global is
zeroed.
>Is this a matter of a patch to the stub
Commenting out this would probably do what you want.  Note though that as of
binutils 2.8 ld has its own version of the stub in it, so you would have to
configure that as well, or change the linker script to not use stubbed coff
output.  I would like to say that changing the stub is in no way a good
idea, and I would suggest you live with the paging problems.  That or malloc
the array.
From stub.asm.
 mov es, [client_ds]  ; clear the BSS section
 mov edi, bss_section[s_vaddr]
 mov ecx, bss_section[s_size]
 xor eax,eax
 shr ecx,2
 .addrsize
 rep
 stosd
- Raw text -