Article View: comp.lang.asm.x86
Article #90Re: DOSSEG and TLINK
From: assassin17
Date: Sun, 16 May 1999 00:00
Date: Sun, 16 May 1999 00:00
102 lines
3430 bytes
3430 bytes
bsmith@sudleyplacedespam.com wrote: > assassin17@rocketmail.com wrote: [snip] > > 1. All segments with a class name ending in CODE > > 2. Far data segments (segments outside DGROUP) > > 3. Near data (DGROUP) segments, in the following order: > > a. Segments of class BEGDATA (reserved for Microsoft use) > > b. Any segments not of class BEGDATA, BSS, or STACK > > c. Segments of class BSS > > d. Segments of class STACK > > > > however, TLINK seems to always put segments with class 'STACK' at the > > end, even if they're _not_ in DGROUP. MASM's LINK behaves according to > > the above list. is there any standard to how other linkers handle > > DOSSEG, or can they arrange the different classed segments however they > > want? > > The standard is the set of rules you mentioned above. TLINK just > doesn't observe them. thanks for the reply. heh, i guess this explains why TLINK 7.1.30.1 just ignores DOSSEG.. > > ---------- > > DOSSEG > > > > DGROUP GROUP OERP,AAAA,xaaa,LOPE,FBSS,DARK > > > > xaaa SEGMENT 'CODE' > > xaaa ENDS > > > > CBF SEGMENT > > CBF ENDS > > > > FBSS SEGMENT 'DATA' > > FBSS ENDS > > > > LOSER SEGMENT 'STACK' > > LOSER ENDS > > > > ztr SEGMENT 'DATA' > > ztr ENDS > > > > aab SEGMENT 'BSS' > > aab ENDS > > > > OERP SEGMENT 'BEGDATA' > > OERP ENDS > > > > AAAA SEGMENT 'ARPA' > > AAAA ENDS > > > > LOPE SEGMENT 'STACK' > > LOPE ENDS > > > > ZZZU SEGMENT 'ARPA' > > ZZZU ENDS > > > > DARK SEGMENT 'CODE' > > DARK ENDS > > > > END > > ----- [snipped a lot] > According to the rules, the correct order (for the original segments) is > as follows: > > Name Class Rule > -------------------- > xaaa CODE 1 > DARK CODE 1 > CBF 2 > ztr DATA 2 > LOSER STACK 2 > aab BSS 2 > ZZZU ARPA 2 > OERP BEGDATA 3a > FBSS DATA 3b > AAAA ARPA 3b > LOPE STACK 3d > _________________________________________ ok, QLINK and M$ LINK both do it right then. hmm.. why does ztr end up before LOSER, even thought it's after it in the source file? is it because FBSS is in the same class as ztr, and it's before LOSER in the code? thanks p.s. sorry for re-posting/sending this.. but it never showed up on deja after i posted yesterday. -- =-= assassin17@rocketmail.com =-= --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---
Technical Details
Message-ID:
<7hnajq$jfn$1@autumn.news.rcn.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7hg7kq$ksb$1@autumn.news.rcn.net> <7hih7k$8vb$2@autumn.news.rcn.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7d8d,dda8022d1c19bc63 X-Google-Attributes: gidf7d8d,public X-Google-Thread: feaef,dda8022d1c19bc63 X-Google-Attributes: gidfeaef,public X-Google-Thread: 114917,dda8022d1c19bc63 X-Google-Attributes: gid114917,public From: assassin17@rocketmail.com Subject: Re: DOSSEG and TLINK Date: 1999/05/16 Message-ID: <7hnajq$jfn$1@autumn.news.rcn.net> X-Deja-AN: 478575113 Approved: <johnfine@erols.com> References: <7hg7kq$ksb$1@autumn.news.rcn.net> <7hih7k$8vb$2@autumn.news.rcn.net> X-Http-User-Agent: Mozilla/4.08 [en] (Win95; I) X-Mozilla-Status: 0801 X-Complaints-To: abuse@rcn.com X-Trace: l/Vb7QVXh57WdgAvTMABowjm87xSaqeajRtyiUDf+J4= X-Http-Proxy: 1.0 x29.deja.com:80 (Squid/1.1.22) for client 206.68.208.231 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Sun May 16 20:31:38 1999 GMT NNTP-Posting-Date: 16 May 1999 20:42:34 GMT Newsgroups: comp.lang.asm.x86,borland.public.tasm,alt.lang.asm