On 09/08/17(Wed) 11:58, Martin Pieuchot wrote: > As discussed recently on tech@ with Karel, some ports would benefit > from having a <elf.h> header. This header is the Solaris version of > our <elf_abi.h> and has been adopted by FreeBSD. > > I'd like to migrate our base system from <elf_abi.h> to <elf.h>. This > would make our base tools dealing with ELF more portable. > > So here's a first step, introducing /usr/include/elf.h. Could some of > you run a bulk with it and report the possible breakages?
Now that the offending function declaration has been remove from libc libelf builds as before. Could you guys tell us if there's any other fallout from this diff? Index: Makefile =================================================================== RCS file: /cvs/src/include/Makefile,v retrieving revision 1.219 diff -u -p -r1.219 Makefile --- Makefile 17 Apr 2017 15:53:21 -0000 1.219 +++ Makefile 9 Aug 2017 15:46:46 -0000 @@ -10,9 +10,10 @@ .include <bsd.own.mk> 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 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 \ + complex.h cpio.h ctype.h curses.h db.h dirent.h disktab.h dlfcn.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 kvm.h langinfo.h libgen.h limits.h link.h link_elf.h \ locale.h login_cap.h math.h md5.h memory.h ndbm.h netdb.h netgroup.h \ nlist.h nl_types.h paths.h poll.h pwd.h ranlib.h readpassphrase.h \ Index: elf.h =================================================================== RCS file: elf.h diff -N elf.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ elf.h 9 Aug 2017 15:49:08 -0000 @@ -0,0 +1,12 @@ +/* $OpenBSD$ */ + +/* + * Public domain. + */ + +#ifndef _ELF_H_ +#define _ELF_H_ + +#include <sys/exec_elf.h> + +#endif /* _ELF_H_ */