Changeset 3938


Ignore:
Timestamp:
Nov 10, 2014, 8:32:17 PM (11 years ago)
Author:
bird
Message:

emx: Added emxomfstrip (untested).

Location:
trunk/emx
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/emx/Makefile.kmk

    r3845 r3938  
    2424        emxomfar \
    2525        emxomfld \
     26        emxomfstrip \
    2627        listomf \
    2728        stripomf \
     
    179180emxomfld_LIBS = \
    180181        $(libmoddef_1_TARGET)   
     182
     183#
     184# emxomfstrip
     185#
     186emxomfstrip_TEMPLATE = usr.bin
     187emxomfstrip_SOURCES = \
     188        src/emxomf/emxomfstrip.c
    181189
    182190#
  • trunk/emx/include/defs.h

    r3659 r3938  
    7272};
    7373
     74
     75/* exe1 + exe2, with more canonical member names. */
     76struct exe1p2_header
     77{
     78  word e_magic;
     79  word e_cblp;
     80  word e_cp;
     81  word e_crlc;
     82  word e_cparhdr;
     83  word e_minalloc;
     84  word e_maxalloc;
     85  word e_ss;
     86  word e_sp;
     87  word e_csum;
     88  word e_ip;
     89  word e_cs;
     90  word e_lfarlc;
     91  word e_ovno;
     92  word e_res[4];
     93  word e_oemid;
     94  word e_oeminfo;
     95  word e_res2[10];
     96  dword e_lfanew;
     97};
     98
     99#define EXE_MAGIC_MZ 0x5a4d
     100
     101
    74102/* This is the layout of the OS/2 LX header. */
    75103struct os2_header
     
    125153};
    126154
     155#define EXE_MAGIC_LX 0x584c
     156
     157
    127158/* This is the layout of an object table entry. */
    128159struct object
Note: See TracChangeset for help on using the changeset viewer.