delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/31/19:31:27

Xref: news2.mv.net comp.os.msdos.djgpp:6639
From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: __attribute__((section))
Date: Wed, 31 Jul 1996 19:13:51 GMT
Lines: 33
Message-ID: <838840319.11194.2@abwillms.demon.co.uk>
References: <Pine DOT NEB DOT 3 DOT 93 DOT 960731121214 DOT 7438B-100000 AT ananke DOT amu DOT edu DOT pl>
NNTP-Posting-Host: abwillms.demon.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019