File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 22*
33* Open Watcom Project
44*
5+ * Copyright (c) 2002-2023 The Open Watcom Contributors. All Rights Reserved.
56* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
67*
78* ========================================================================
3839
3940// must correspond to owl_cpu enums in owl.h - first entry is for PowerPC
4041static uint_16 cpuTypes [] = {
41- COFF_IMAGE_FILE_MACHINE_POWERPC ,
42- COFF_IMAGE_FILE_MACHINE_ALPHA ,
43- COFF_IMAGE_FILE_MACHINE_R4000 ,
44- COFF_IMAGE_FILE_MACHINE_I386
42+ #define OWL_CPU (c ,e ,o ) o ,
43+ OWL_CPUS
44+ #undef OWL_CPU
4545};
4646
4747#define _OWLIndexToCOFFIndex ( x ) ( (x) + FIRST_USER_SECTION )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ static unsigned numSymbols( owl_file_handle file ) {
5858}
5959
6060static Elf32_Half machineTypes [] = {
61- #define OWL_CPU (c ,e ) e ,
61+ #define OWL_CPU (c ,e , o ) e ,
6262 OWL_CPUS
6363 #undef OWL_CPU
6464};
Original file line number Diff line number Diff line change 3939#include <stdio.h>
4040
4141#define OWL_CPUS \
42- OWL_CPU( OWL_CPU_PPC, EM_PPC ) \
43- OWL_CPU( OWL_CPU_ALPHA, EM_ALPHA ) \
44- OWL_CPU( OWL_CPU_MIPS, EM_MIPS ) \
45- OWL_CPU( OWL_CPU_X86, EM_386 ) \
46- OWL_CPU( OWL_CPU_X64, EM_X86_64 )
42+ OWL_CPU( OWL_CPU_PPC, EM_PPC, COFF_IMAGE_FILE_MACHINE_POWERPC ) \
43+ OWL_CPU( OWL_CPU_ALPHA, EM_ALPHA, COFF_IMAGE_FILE_MACHINE_ALPHA ) \
44+ OWL_CPU( OWL_CPU_MIPS, EM_MIPS, COFF_IMAGE_FILE_MACHINE_R4000 ) \
45+ OWL_CPU( OWL_CPU_X86, EM_386, COFF_IMAGE_FILE_MACHINE_I386 ) \
46+ OWL_CPU( OWL_CPU_X64, EM_X86_64, COFF_IMAGE_FILE_MACHINE_AMD64 )
4747
4848#define OWL_RELOCS \
4949 OWL_RELOC( OWL_RELOC_ABSOLUTE ) /* ref to a 32-bit absolute address */ \
@@ -88,7 +88,7 @@ typedef enum {
8888} owl_format ;
8989
9090typedef enum {
91- #define OWL_CPU(c,e) c,
91+ #define OWL_CPU(c,e,o ) c,
9292 OWL_CPUS
9393 #undef OWL_CPU
9494} owl_cpu ;
You can’t perform that action at this time.
0 commit comments