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