summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2014-07-26 18:52:23 +0000
committermarcel <marcel@FreeBSD.org>2014-07-26 18:52:23 +0000
commitaa697e07dbda4f68afe53c52dd9671d14e380b7b (patch)
tree82941be7e8d5377a54a11794d9c23bed8c5b1cbb /sys/mips
parent1d7a51d2422a45c5c701f476104a37d8adaeaeb8 (diff)
downloadFreeBSD-src-aa697e07dbda4f68afe53c52dd9671d14e380b7b.zip
FreeBSD-src-aa697e07dbda4f68afe53c52dd9671d14e380b7b.tar.gz
Add missing definition of ELF_MACHINE_OK, now used by gcore(1).
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