Replace MACHINE/CHIP macros with compiler macros
This commit is contained in:
@@ -57,10 +57,10 @@ int read_header_aout(
|
||||
|
||||
/* Check magic number, cpu type, and flags. */
|
||||
if (BADMAG(*hdr)) return(ENOEXEC);
|
||||
#if (CHIP == INTEL && _WORD_SIZE == 2)
|
||||
#if (defined(__i386__) && _WORD_SIZE == 2)
|
||||
if (hdr->a_cpu != A_I8086) return(ENOEXEC);
|
||||
#endif
|
||||
#if (CHIP == INTEL && _WORD_SIZE == 4)
|
||||
#if (defined(__i386__) && _WORD_SIZE == 4)
|
||||
if (hdr->a_cpu != A_I80386) return(ENOEXEC);
|
||||
#endif
|
||||
if ((hdr->a_flags & ~(A_NSYM | A_EXEC | A_SEP)) != 0) return(ENOEXEC);
|
||||
|
||||
Reference in New Issue
Block a user