Changeset View
Changeset View
Standalone View
Standalone View
contrib/elftoolchain/common/elfdefinitions.h
Show All 27 Lines | |||||
/* | /* | ||||
* These definitions are based on: | * These definitions are based on: | ||||
* - The public specification of the ELF format as defined in the | * - The public specification of the ELF format as defined in the | ||||
* October 2009 draft of System V ABI. | * October 2009 draft of System V ABI. | ||||
* See: http://www.sco.com/developers/gabi/latest/ch4.intro.html | * See: http://www.sco.com/developers/gabi/latest/ch4.intro.html | ||||
* - The May 1998 (version 1.5) draft of "The ELF-64 object format". | * - The May 1998 (version 1.5) draft of "The ELF-64 object format". | ||||
* - Processor-specific ELF ABI definitions for sparc, i386, amd64, mips, | * - Processor-specific ELF ABI definitions for sparc, i386, amd64, mips, | ||||
* ia64, and powerpc processors. | * ia64, powerpc, and RISC-V processors. | ||||
* - The "Linkers and Libraries Guide", from Sun Microsystems. | * - The "Linkers and Libraries Guide", from Sun Microsystems. | ||||
*/ | */ | ||||
#ifndef _ELFDEFINITIONS_H_ | #ifndef _ELFDEFINITIONS_H_ | ||||
#define _ELFDEFINITIONS_H_ | #define _ELFDEFINITIONS_H_ | ||||
#include <stdint.h> | #include <stdint.h> | ||||
▲ Show 20 Lines • Show All 376 Lines • ▼ Show 20 Lines | |||||
_ELF_DEFINE_EF(EF_MIPS_ARCH, 0xF0000000UL, \ | _ELF_DEFINE_EF(EF_MIPS_ARCH, 0xF0000000UL, \ | ||||
"4-bit MIPS architecture field") \ | "4-bit MIPS architecture field") \ | ||||
_ELF_DEFINE_EF(EF_PPC_EMB, 0x80000000UL, \ | _ELF_DEFINE_EF(EF_PPC_EMB, 0x80000000UL, \ | ||||
"Embedded PowerPC flag") \ | "Embedded PowerPC flag") \ | ||||
_ELF_DEFINE_EF(EF_PPC_RELOCATABLE, 0x00010000UL, \ | _ELF_DEFINE_EF(EF_PPC_RELOCATABLE, 0x00010000UL, \ | ||||
"-mrelocatable flag") \ | "-mrelocatable flag") \ | ||||
_ELF_DEFINE_EF(EF_PPC_RELOCATABLE_LIB, 0x00008000UL, \ | _ELF_DEFINE_EF(EF_PPC_RELOCATABLE_LIB, 0x00008000UL, \ | ||||
"-mrelocatable-lib flag") \ | "-mrelocatable-lib flag") \ | ||||
_ELF_DEFINE_EF(EF_RISCV_RVC, 0x00000001UL, \ | |||||
"Compressed instruction extension") \ | |||||
_ELF_DEFINE_EF(EF_RISCV_FLOAT_ABI_SOFT, 0x00000000UL, \ | |||||
mhorne: I'm not sure if this file needs an `EF_RISCV_FLOAT_ABI_SOFT` as well. Honestly I'm not sure… | |||||
Done Inline ActionsI don't think it hurts to keep it. I'm not sure what these are used for. They might be useful on other operating systems which don't have an equivalent system header. markj: I don't think it hurts to keep it.
I'm not sure what these are used for. They might be useful… | |||||
Done Inline ActionsYou were right, it needs to be defined here to build the upstream elftoolchain, even on FreeBSD. mhorne: You were right, it needs to be defined here to build the upstream elftoolchain, even on FreeBSD. | |||||
"Software emulated floating point") \ | |||||
_ELF_DEFINE_EF(EF_RISCV_FLOAT_ABI_SINGLE, 0x00000002UL, \ | |||||
"Single precision floating point") \ | |||||
_ELF_DEFINE_EF(EF_RISCV_FLOAT_ABI_DOUBLE, 0x00000004UL, \ | |||||
"Double precision floating point") \ | |||||
_ELF_DEFINE_EF(EF_RISCV_FLOAT_ABI_QUAD, 0x00000006UL, \ | |||||
"Quad precision floating point") \ | |||||
_ELF_DEFINE_EF(EF_RISCV_RVE, 0x00000008UL, \ | |||||
"Compressed instruction ABI") \ | |||||
_ELF_DEFINE_EF(EF_RISCV_TSO, 0x00000010UL, \ | |||||
"RVTSO memory consistency model") \ | |||||
_ELF_DEFINE_EF(EF_SPARC_EXT_MASK, 0x00ffff00UL, \ | _ELF_DEFINE_EF(EF_SPARC_EXT_MASK, 0x00ffff00UL, \ | ||||
"Vendor Extension mask") \ | "Vendor Extension mask") \ | ||||
_ELF_DEFINE_EF(EF_SPARC_32PLUS, 0x00000100UL, \ | _ELF_DEFINE_EF(EF_SPARC_32PLUS, 0x00000100UL, \ | ||||
"Generic V8+ features") \ | "Generic V8+ features") \ | ||||
_ELF_DEFINE_EF(EF_SPARC_SUN_US1, 0x00000200UL, \ | _ELF_DEFINE_EF(EF_SPARC_SUN_US1, 0x00000200UL, \ | ||||
"Sun UltraSPARCTM 1 Extensions") \ | "Sun UltraSPARCTM 1 Extensions") \ | ||||
_ELF_DEFINE_EF(EF_SPARC_HAL_R1, 0x00000400UL, "HAL R1 Extensions") \ | _ELF_DEFINE_EF(EF_SPARC_HAL_R1, 0x00000400UL, "HAL R1 Extensions") \ | ||||
_ELF_DEFINE_EF(EF_SPARC_SUN_US3, 0x00000800UL, \ | _ELF_DEFINE_EF(EF_SPARC_SUN_US3, 0x00000800UL, \ | ||||
▲ Show 20 Lines • Show All 2,464 Lines • Show Last 20 Lines |
I'm not sure if this file needs an EF_RISCV_FLOAT_ABI_SOFT as well. Honestly I'm not sure what uses these definitions since readelf uses sys/elf_common.h. Is this still worth keeping in the same commit?