Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/elf32.h
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | |||||
/* Macros for accessing the fields of r_info. */ | /* Macros for accessing the fields of r_info. */ | ||||
#define ELF32_R_SYM(info) ((info) >> 8) | #define ELF32_R_SYM(info) ((info) >> 8) | ||||
#define ELF32_R_TYPE(info) ((unsigned char)(info)) | #define ELF32_R_TYPE(info) ((unsigned char)(info)) | ||||
/* Macro for constructing r_info from field values. */ | /* Macro for constructing r_info from field values. */ | ||||
#define ELF32_R_INFO(sym, type) (((sym) << 8) + (unsigned char)(type)) | #define ELF32_R_INFO(sym, type) (((sym) << 8) + (unsigned char)(type)) | ||||
typedef Elf32_Word Elf32_Relr; | |||||
kib: If they changed relocation entry to be 64bit always, why this? | |||||
Done Inline ActionsThey use typedef Elf32_Word Elf32_Relr; for ELFCLASS32. ld.lld --pack-dyn-relocs=relr and llvm-readelf -r use 32-bit on ELFCLASS32 as well (llvm-project llvm/include/llvm/BinaryFormat/ELF.h) fbsd-phab_maskray.me: They use `typedef Elf32_Word Elf32_Relr;` for ELFCLASS32. ld.lld --pack-dyn-relocs=relr and… | |||||
/* | /* | ||||
* Note entry header | * Note entry header | ||||
*/ | */ | ||||
typedef Elf_Note Elf32_Nhdr; | typedef Elf_Note Elf32_Nhdr; | ||||
/* | /* | ||||
* Move entry | * Move entry | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |
If they changed relocation entry to be 64bit always, why this?