mirror of
https://github.com/dreamlayers/netbsd-mopd.git
synced 2026-02-27 08:58:59 +00:00
Modify exec_elf.h for Linux, making mopcopy work for ELF.
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user