Modify exec_elf.h for Linux, making mopcopy work for ELF.

This commit is contained in:
Boris Gjenero
2020-10-22 01:06:28 -04:00
parent d1a3cae84a
commit ceabac12a6
3 changed files with 5 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ __RCSID("$NetBSD: file.c,v 1.16 2016/06/08 01:11:49 christos Exp $");
# if defined(__NetBSD__)
# include <sys/exec_elf.h>
# else
# define NOELF
# include "../netbsd_h/exec_elf.h"
# endif
#endif /* NOELF */

View File

@@ -76,7 +76,7 @@ __RCSID("$NetBSD: mopcopy.c,v 1.7 2019/12/27 09:41:52 msaitoh Exp $");
# if defined(__NetBSD__)
# include <sys/exec_elf.h>
# else
# define NOELF
# include "../netbsd_h/exec_elf.h"
# endif
# if !defined(EM_VAX)
# define EM_VAX 75

View File

@@ -47,11 +47,14 @@
#include <stddef.h>
#endif /* _KERNEL || _STANDALONE */
/* Not needed for mopd */
#if 0
#if HAVE_NBTOOL_CONFIG_H
#include <nbinclude/machine/elf_machdep.h>
#else
#include <machine/elf_machdep.h>
#endif
#endif
typedef uint8_t Elf_Byte;