Mail Archives: djgpp/1996/08/07/11:20:44
> >The hack is OK, but where does MYDATA section go? Does it go to separate
> >segment when proggy is loaded? If so, you have to use far pointers/switch DS
> >selector if you want to access the data - BY HAND.
If MYDATA is a separate section, the stub will be confused and either load
the wrong things or ignore it completely. Look at the stub's source - it
only loads the first 2 sections and zeros the memory associated with the
third section. If the first 3 sections aren't text,data,bss in that order,
badness will happen. Sections 4..n will be ignored completely.
- Raw text -