diff options
author | peter <peter@FreeBSD.org> | 1997-08-30 18:59:48 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-08-30 18:59:48 +0000 |
commit | b724085a66632f47d3a85a40cf238eb64c486956 (patch) | |
tree | 95f37fb47b0585c90bd2a8d12ef7c8362e3a0faa /sys | |
parent | 82c7a53f3f74f5011c6a40b5399b027555a667d1 (diff) | |
download | FreeBSD-src-b724085a66632f47d3a85a40cf238eb64c486956.zip FreeBSD-src-b724085a66632f47d3a85a40cf238eb64c486956.tar.gz |
Define some machine characteristics using symbol naming on conventions
in place in the other BSD's.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/include/elf.h | 8 | ||||
-rw-r--r-- | sys/i386/include/elf.h | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/amd64/include/elf.h b/sys/amd64/include/elf.h index dd56d9f..34478e7 100644 --- a/sys/amd64/include/elf.h +++ b/sys/amd64/include/elf.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: elf.h,v 1.1 1997/05/21 23:07:28 jdp Exp $ */ #ifndef _MACHINE_ELF_H_ @@ -103,4 +103,10 @@ typedef struct { /* Auxiliary vector entry on initial stack */ #define R_386_COUNT 11 /* Count of defined relocation types. */ +/* Define "machine" characteristics */ +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_386 +#define ELF_TARG_VER 1 + #endif /* !_MACHINE_ELF_H_ */ diff --git a/sys/i386/include/elf.h b/sys/i386/include/elf.h index dd56d9f..34478e7 100644 --- a/sys/i386/include/elf.h +++ b/sys/i386/include/elf.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: elf.h,v 1.1 1997/05/21 23:07:28 jdp Exp $ */ #ifndef _MACHINE_ELF_H_ @@ -103,4 +103,10 @@ typedef struct { /* Auxiliary vector entry on initial stack */ #define R_386_COUNT 11 /* Count of defined relocation types. */ +/* Define "machine" characteristics */ +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB +#define ELF_TARG_MACH EM_386 +#define ELF_TARG_VER 1 + #endif /* !_MACHINE_ELF_H_ */ |