summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-17 09:34:53 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-17 09:34:53 +0000
commit380a65994d3e0248e147d0ef97c7e609d9152cca (patch)
treeed10d1781f38a67a71e069af8d30967bf4e30daf
parent29c8997ef3498ff3526bd771d7dc425e6636c600 (diff)
<elf.h> should make it easier to port our ELF-related tools to other Unices.
For the moment it only includes <sys/exec_elf.h> but the goal is to stop pulling it directly and also replace <elf_abi.h> at least for base applications. ok deraadt@, jasper@, naddy@
-rw-r--r--include/Makefile4
-rw-r--r--include/elf.h12
2 files changed, 14 insertions, 2 deletions
diff --git a/include/Makefile b/include/Makefile
index cddfefdcfec..878ea45f1f9 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.221 2017/10/15 23:40:33 guenther Exp $
+# $OpenBSD: Makefile,v 1.222 2017/10/17 09:34:52 mpi Exp $
# $NetBSD: Makefile,v 1.59 1996/05/15 21:36:43 jtc Exp $
# @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91
@@ -13,7 +13,7 @@ FILES= a.out.h ar.h asr.h assert.h \
bitstring.h blf.h bsd_auth.h \
complex.h cpio.h ctype.h curses.h \
db.h dirent.h disktab.h dlfcn.h \
- elf_abi.h err.h errno.h \
+ elf.h elf_abi.h err.h errno.h \
fenv.h float.h fnmatch.h fstab.h fts.h ftw.h \
getopt.h glob.h grp.h \
icdb.h ieeefp.h ifaddrs.h inttypes.h iso646.h \
diff --git a/include/elf.h b/include/elf.h
new file mode 100644
index 00000000000..8b1273e9150
--- /dev/null
+++ b/include/elf.h
@@ -0,0 +1,12 @@
+/* $OpenBSD: elf.h,v 1.1 2017/10/17 09:34:52 mpi Exp $ */
+
+/*
+ * Public domain.
+ */
+
+#ifndef _ELF_H_
+#define _ELF_H_
+
+#include <sys/exec_elf.h>
+
+#endif /* _ELF_H_ */