/[gxemul]/trunk/src/file/file.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/file/file.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 39 by dpavlin, Mon Oct 8 16:21:53 2007 UTC revision 40 by dpavlin, Mon Oct 8 16:22:11 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: file.c,v 1.1 2007/04/10 16:33:44 debug Exp $   *  $Id: file.c,v 1.2 2007/04/19 15:18:16 debug Exp $
29   *   *
30   *  This module contains functions which load executable images into (emulated)   *  This module contains functions which load executable images into (emulated)
31   *  memory. File formats recognized so far are:   *  memory. File formats recognized so far are:
32   *   *
33   *      a.out           old format used by OpenBSD 2.x pmax kernels   *      a.out           traditional old-style Unix binary format
34   *      Mach-O          MacOS X format, etc.   *      Mach-O          MacOS X format, etc.
35   *      ecoff           old format used by Ultrix, Windows NT, etc   *      ecoff           old format used by Ultrix, Windows NT, etc
36   *      srec            Motorola SREC format   *      srec            Motorola SREC format
# Line 197  void file_load(struct machine *machine, Line 197  void file_load(struct machine *machine,
197                      entrypointp, arch, byte_orderp);                      entrypointp, arch, byte_orderp);
198                  goto ret;                  goto ret;
199          }          }
200            if (buf[0]==0x00 && buf[1]==0x99 && buf[2]==0x01 && buf[3]==0x0b) {
201                    /*  OpenBSD/M88K a.out  */
202                    file_load_aout(machine, mem, filename, AOUT_FLAG_FROM_BEGINNING,
203                        entrypointp, arch, byte_orderp);
204                    goto ret;
205            }
206          if (buf[0]==0x00 && buf[1]==0x8f && buf[2]==0x01 && buf[3]==0x0b) {          if (buf[0]==0x00 && buf[1]==0x8f && buf[2]==0x01 && buf[3]==0x0b) {
207                  /*  ARM a.out  */                  /*  ARM a.out  */
208                  file_load_aout(machine, mem, filename, AOUT_FLAG_FROM_BEGINNING,                  file_load_aout(machine, mem, filename, AOUT_FLAG_FROM_BEGINNING,

Legend:
Removed from v.39  
changed lines
  Added in v.40

  ViewVC Help
Powered by ViewVC 1.1.26