summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-07-02 18:27:04 +0000
committeremaste <emaste@FreeBSD.org>2015-07-02 18:27:04 +0000
commitfda669645d5cf6f3669e00305fcf3320b13130f8 (patch)
treee89747be8c0d259791060826caa47f34212b9839 /sys/mips
parent6c9b1bee2d67c05c5bd0066aa73af98a34964afb (diff)
downloadFreeBSD-src-fda669645d5cf6f3669e00305fcf3320b13130f8.zip
FreeBSD-src-fda669645d5cf6f3669e00305fcf3320b13130f8.tar.gz
MFC r269137 by marcel:
Add missing definition of ELF_MACHINE_OK, now used by gcore(1). PR: 201204
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/include/elf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/mips/include/elf.h b/sys/mips/include/elf.h
index 427906d..c1e792b 100644
--- a/sys/mips/include/elf.h
+++ b/sys/mips/include/elf.h
@@ -77,6 +77,8 @@
#define ELF_ARCH EM_MIPS
#define ELF_ARCH32 EM_MIPS
+#define ELF_MACHINE_OK(x) ((x) == ELF_ARCH)
+
/* Define "machine" characteristics */
#if __ELF_WORD_SIZE == 32
#define ELF_TARG_CLASS ELFCLASS32
OpenPOWER on IntegriCloud