www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/12/10/06:09:00

Date: Fri, 10 Dec 93 11:34:19 +0100
From: terra AT diku DOT dk
To: darrylo AT hpnmxx DOT sr DOT hp DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu, C DOT C DOT Boucher AT southampton DOT ac DOT uk
Subject: Re: 1.11 & COFF header files???

>      Exactly what kind of COFF is used by DJGPP 1.11 (COFF, or COFF
> encapsulated a.out), and where are the structures/magic numbers defined?
> I'm trying to port OEmacs to 1.11, and I can't get unexec.c to work (I
> can't find where the COFF structures/magic numbers are defined). 

Standard COFF as far as I can see.  I made it work by

#include <../go32/gotypes.h>
#include <../go32/ed/coff.h>
#define n_type e_type
/* and one more #define of the same kind */
struct aouthdr {
  /* copy from ../go32/aout.h which for some reason only defines the 
     typedef AOUTHDR type */
}

This works fine except that I cannot debug the dumped Emacs.  If you find out
why, let me know.

Morten Welinder
terra AT diku DOT dk

- Raw text -


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