elf.h (197933) | elf.h (205014) |
---|---|
1/*- 2 * Copyright (c) 1996-1997 John D. Polstra. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1996-1997 John D. Polstra. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/amd64/include/elf.h 197933 2009-10-10 15:31:24Z kib $ | 26 * $FreeBSD: head/sys/amd64/include/elf.h 205014 2010-03-11 14:49:06Z nwhitehorn $ |
27 */ 28 29#ifndef _MACHINE_ELF_H_ 30#define _MACHINE_ELF_H_ 1 31 32/* 33 * ELF definitions for the AMD64 architecture. 34 */ 35 36 37#ifndef __ELF_WORD_SIZE 38#define __ELF_WORD_SIZE 64 /* Used by <sys/elf_generic.h> */ 39#endif 40#include <sys/elf32.h> /* Definitions common to all 32 bit architectures. */ 41#include <sys/elf64.h> /* Definitions common to all 64 bit architectures. */ 42#include <sys/elf_generic.h> 43 44#define ELF_ARCH EM_X86_64 | 27 */ 28 29#ifndef _MACHINE_ELF_H_ 30#define _MACHINE_ELF_H_ 1 31 32/* 33 * ELF definitions for the AMD64 architecture. 34 */ 35 36 37#ifndef __ELF_WORD_SIZE 38#define __ELF_WORD_SIZE 64 /* Used by <sys/elf_generic.h> */ 39#endif 40#include <sys/elf32.h> /* Definitions common to all 32 bit architectures. */ 41#include <sys/elf64.h> /* Definitions common to all 64 bit architectures. */ 42#include <sys/elf_generic.h> 43 44#define ELF_ARCH EM_X86_64 |
45#define ELF_ARCH32 EM_386 |
|
45 46#define ELF_MACHINE_OK(x) ((x) == EM_X86_64) 47 48/* 49 * Auxiliary vector entries for passing information to the interpreter. 50 * 51 * The i386 supplement to the SVR4 ABI specification names this "auxv_t", 52 * but POSIX lays claim to all symbols ending with "_t". --- 63 unchanged lines hidden --- | 46 47#define ELF_MACHINE_OK(x) ((x) == EM_X86_64) 48 49/* 50 * Auxiliary vector entries for passing information to the interpreter. 51 * 52 * The i386 supplement to the SVR4 ABI specification names this "auxv_t", 53 * but POSIX lays claim to all symbols ending with "_t". --- 63 unchanged lines hidden --- |