Date: Sat, 15 Aug 1998 20:03:39 -0700 (PDT) From: John Polstra <jdp@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 Message-ID: <199808160303.UAA27123@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <machine/elf.h> 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 <elf.h>, which is just a wrapper
for <machine/elf.h>.
Applications such as object file dumpers that need to deal with
foreign ELF files can include <sys/elf32.h> and/or <sys/elf64.h>.
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808160303.UAA27123>
