Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/rtld-elf/riscv/reloc.c
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* It is possible for the compiler to emit relocations for unaligned data. | * It is possible for the compiler to emit relocations for unaligned data. | ||||
* We handle this situation with these inlines. | * We handle this situation with these inlines. | ||||
*/ | */ | ||||
#define RELOC_ALIGNED_P(x) \ | #define RELOC_ALIGNED_P(x) \ | ||||
(((uintptr_t)(x) & (sizeof(void *) - 1)) == 0) | (((uintptr_t)(x) & (sizeof(void *) - 1)) == 0) | ||||
void _exit(int); | |||||
uint64_t | uint64_t | ||||
set_gp(Obj_Entry *obj) | set_gp(Obj_Entry *obj) | ||||
{ | { | ||||
uint64_t old; | uint64_t old; | ||||
SymLook req; | SymLook req; | ||||
uint64_t gp; | uint64_t gp; | ||||
int res; | int res; | ||||
▲ Show 20 Lines • Show All 355 Lines • Show Last 20 Lines |