Mail Archives: djgpp/1996/07/31/19:31:27
Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl> wrote:
>On Mon, 29 Jul 1996, Helge Kruse wrote:
>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.
Is this really true?
I mean, will the stub actually allocate seperate selectors with DPMI
for other sections, or just load all those sections into the same
virtual address space, as I thought?
>I tried something similar
>wit an .S file that created new section, put some data into it and initialize
>that data. Then I created (by hand - don't know anything about sed ;-))) an
>*.ld script and linked the proggy - it didn't work.
I managed that... without changing the ld script, so ld just put my
section into a section of the same name in the output file (ie, didn't
group it). No need for different .ld scripts unless you want to
control the placement of this section in the load image.
Regards,
ABW
--
I have become... Comfortably numb...
Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk
<A HREF="http://www.hardcafe.co.uk/Alaric/">http://www.hardcafe.co.uk/Alaric/</A>
- Raw text -