From: "deckerben" Newsgroups: comp.os.msdos.djgpp References: <3dde675f$0$29802$9b622d9e AT news DOT freenet DOT de> <200211221954 DOT gAMJsqm17743 AT envy DOT delorie DOT com> Subject: Re: a.out.h Date: Sat, 23 Nov 2002 02:09:33 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Lines: 43 Message-ID: <3dded421$0$21171$9b622d9e@news.freenet.de> NNTP-Posting-Host: 213.6.63.160 X-Trace: 1038013473 news.freenet.de 21171 213.6.63.160:1108 X-Complaints-To: abuse AT freenet DOT de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "DJ Delorie" wrote in message news:200211221954 DOT gAMJsqm17743 AT envy DOT delorie DOT com... > > > Is there a DJGPP equivelent/version of a.out.h which specifies the binary > > file format? > > coff.h > > Also see http://www.delorie.com/djgpp/doc/coff/ Ah! Thank you for the refresher! Still a couple of questions: 1. How should the exec & nlist struct be defined (not in coff.h)? The EMX(PC) definition is: struct exec { unsigned long a_info; unsigned a_text; unsigned a_data; unsigned a_bss; unsigned a_syms; unsigned a_entry; unsigned a_trsize; unsigned a_drsize; }; Would this somehow be misleading if used with DJGPP? 2. How would N_MAGIC be defiend? As ZMAGIC? 3. What about SEGMENT_SIZE ? Thanks, Ben