home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25032 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.4 KB

  1. Path: sparky!uunet!gatech!enterpoop.mit.edu!eru.mt.luth.se!kth.se!sunic!news.tele.fi!news.funet.fi!hydra!klaava!kankkune
  2. From: kankkune@klaava.Helsinki.FI (Risto Kankkunen)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Dumb question: new executable format?
  5. Message-ID: <1993Jan21.213326.4638@klaava.Helsinki.FI>
  6. Date: 21 Jan 93 21:33:26 GMT
  7. References: <1993Jan12.065656.15070@eecs.nwu.edu>
  8. Organization: University of Helsinki, Department of Computer Science
  9. Lines: 18
  10.  
  11. >Either we could adopt BSD-style executables with a 4K header and lots
  12. >of wasted space, or we could do as someone suggested on comp.os.linux
  13. >(sorry can't remember your name, but for the record it was not my
  14. >idea) and put the header in the first page of the text segment,
  15. >supposedly including a header version number and a pointer (or even
  16. >better, a jump instruction) to the beginning of the actual code.
  17.  
  18. I don't understand why you need a pointer or a jump, but anyway...
  19.  
  20. I think sun uses a 32 byte header, which is directly followed by the
  21. code. The header gets (and stays) loaded with the first page (and is
  22. part of it) and the program entry point is defined to be 32 (I think).
  23.  
  24. There is already support for this in the GNU utils, so adapting
  25. something like this to Linux wouldn't be difficult. Reserving a distinct
  26. magic number for this would keep things unambiguous.
  27. -- 
  28.                   dos, windows, nt... are you a victim of the MS disease?
  29.