diff options
author | jdp <jdp@FreeBSD.org> | 1998-08-16 03:03:38 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-08-16 03:03:38 +0000 |
commit | d1ce81d497992a3de7490d0995410edf07e7ae04 (patch) | |
tree | a138dd5d56ee74a338a26b84622f820a72945c7d /lib/libc | |
parent | b48943eaac13f7c26e86cdaced8344dd8a25d587 (diff) | |
download | FreeBSD-src-d1ce81d497992a3de7490d0995410edf07e7ae04.zip FreeBSD-src-d1ce81d497992a3de7490d0995410edf07e7ae04.tar.gz |
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.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions