aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/gcore/elf32core.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/gcore/elf32core.c')
-rw-r--r--usr.bin/gcore/elf32core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/gcore/elf32core.c b/usr.bin/gcore/elf32core.c
new file mode 100644
index 000000000000..292ff59b98b1
--- /dev/null
+++ b/usr.bin/gcore/elf32core.c
@@ -0,0 +1,10 @@
+#ifndef __LP64__
+#error "this file must be compiled for LP64."
+#endif
+
+#define __ELF_WORD_SIZE 32
+#define _MACHINE_ELF_WANT_32BIT
+
+#define ELFCORE_COMPAT_32 1
+#include "elfcore.c"
+