home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23719 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.8 KB  |  43 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!hpa
  3. From: hpa@eecs.nwu.edu (H. Peter Anvin N9ITP)
  4. Subject: Dumb question: new executable format?
  5. Message-ID: <1993Jan12.065656.15070@eecs.nwu.edu>
  6. Reply-To: hpa@nwu.edu (H. Peter Anvin)
  7. Organization: You must be kidding!
  8. Date: Tue, 12 Jan 1993 06:56:56 GMT
  9. Lines: 32
  10.  
  11. Since the new extfs now is in alpha, and will (sometime) support block
  12. sizes other than 1K, and such a change is eventually slated for the
  13. Linux kernel as far as I have understood, I would like to ask the
  14. question: doesn't that cause a problem with the current Minix-style
  15. executable format?
  16.  
  17. With a 1K block size, everything is dandy.  But with a 4K block size,
  18. which has been discussed (or really anything > 1K)
  19. the 1K header drives the pages in the executable out of alignment:
  20.  
  21. 1K blocks | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | ...
  22. 4K blocks |       0       |       1       |       2       | ...
  23. Exec file |Hdr|    Page 0     |    Page 1     |    Page 2     | ...
  24.  
  25. Either we could adopt BSD-style executables with a 4K header and lots
  26. of wasted space, or we could do as someone suggested on comp.os.linux
  27. (sorry can't remember your name, but for the record it was not my
  28. idea) and put the header in the first page of the text segment,
  29. supposedly including a header version number and a pointer (or even
  30. better, a jump instruction) to the beginning of the actual code.
  31.  
  32. This would clearly require modifications of both the kernel and
  33. linkers, possibly even compilers.  Maybe Linus and HJ could tell how
  34. much of a hassle it would be to implement such a change.
  35.  
  36.     /hpa
  37.  
  38. -- 
  39. INTERNET:  hpa@nwu.edu   TALK:      hpa@delta.eecs.nwu.edu
  40. BITNET:    HPA@NUACC     IBMNET:    16331@IBMX400
  41. HAM RADIO: N9ITP         NeXTMAIL:  hpa@lenny.acns.nwu.edu
  42. while ( 1 ) ; cp /dev/zero /dev/null & end
  43.