From owner-cvs-all Sat Aug 15 20:03:43 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA21484 for cvs-all-outgoing; Sat, 15 Aug 1998 20:03:43 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA21479; Sat, 15 Aug 1998 20:03:42 -0700 (PDT) (envelope-from jdp@FreeBSD.org) From: John Polstra Received: (from jdp@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA27123; Sat, 15 Aug 1998 20:03:39 -0700 (PDT) Date: Sat, 15 Aug 1998 20:03:39 -0700 (PDT) Message-Id: <199808160303.UAA27123@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/i386/include elf.h src/sys/sys elf_common.h elf_generic.h elf32.h elf64.h Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jdp 1998/08/15 20:03:39 PDT Modified files: sys/i386/include elf.h sys/sys elf32.h elf64.h Added files: sys/sys elf_common.h elf_generic.h Log: Revamp the ELF include files to better support architecture-independent applications. Here's how it works. The kernel should include to get the definitions for the native architecture. It can reference the various ELF structures with generic names like Elf_Sym, Elf_Shdr, etc. A define __ELF_WORD_SIZE is also available with the value 32 or 64 as appropriate for the native architecture. Generic applications should include , which is just a wrapper for . Applications such as object file dumpers that need to deal with foreign ELF files can include and/or . Both can be included from the same source file if desired. The structure names must be referenced using wordsize-specific names like Elf32_Sym, Elf64_Shdr, etc. I haven't change the alpha stuff, but I haven't broken it either. Revision Changes Path 1.3 +6 -1 src/sys/i386/include/elf.h 1.4 +13 -171 src/sys/sys/elf32.h 1.4 +4 -164 src/sys/sys/elf64.h