Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/elf_common.h
Show First 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | |||||
#define EF_SPARCV9_RMO 0x00000002 | #define EF_SPARCV9_RMO 0x00000002 | ||||
/* Special section indexes. */ | /* Special section indexes. */ | ||||
#define SHN_UNDEF 0 /* Undefined, missing, irrelevant. */ | #define SHN_UNDEF 0 /* Undefined, missing, irrelevant. */ | ||||
#define SHN_LORESERVE 0xff00 /* First of reserved range. */ | #define SHN_LORESERVE 0xff00 /* First of reserved range. */ | ||||
#define SHN_LOPROC 0xff00 /* First processor-specific. */ | #define SHN_LOPROC 0xff00 /* First processor-specific. */ | ||||
#define SHN_HIPROC 0xff1f /* Last processor-specific. */ | #define SHN_HIPROC 0xff1f /* Last processor-specific. */ | ||||
#define SHN_LOOS 0xff20 /* First operating system-specific. */ | #define SHN_LOOS 0xff20 /* First operating system-specific. */ | ||||
#define SHN_FBSD_CACHED SHN_LOOS /* Cached global in local symtab. */ | |||||
kib: I think that the define deserves much more detailed explanation. Either there, or in the… | |||||
#define SHN_HIOS 0xff3f /* Last operating system-specific. */ | #define SHN_HIOS 0xff3f /* Last operating system-specific. */ | ||||
#define SHN_ABS 0xfff1 /* Absolute values. */ | #define SHN_ABS 0xfff1 /* Absolute values. */ | ||||
#define SHN_COMMON 0xfff2 /* Common data. */ | #define SHN_COMMON 0xfff2 /* Common data. */ | ||||
#define SHN_XINDEX 0xffff /* Escape -- index stored elsewhere. */ | #define SHN_XINDEX 0xffff /* Escape -- index stored elsewhere. */ | ||||
#define SHN_HIRESERVE 0xffff /* Last of reserved range. */ | #define SHN_HIRESERVE 0xffff /* Last of reserved range. */ | ||||
/* sh_type */ | /* sh_type */ | ||||
#define SHT_NULL 0 /* inactive */ | #define SHT_NULL 0 /* inactive */ | ||||
▲ Show 20 Lines • Show All 871 Lines • Show Last 20 Lines |
I think that the define deserves much more detailed explanation. Either there, or in the elf_obj_lookup(), to explicitly state the scope of the use, and the reasoning.