Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/rtld-elf/rtld.c
Show First 20 Lines • Show All 4,026 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
linkmap_add(Obj_Entry *obj) | linkmap_add(Obj_Entry *obj) | ||||
{ | { | ||||
struct link_map *l = &obj->linkmap; | struct link_map *l = &obj->linkmap; | ||||
struct link_map *prev; | struct link_map *prev; | ||||
obj->linkmap.l_name = obj->path; | obj->linkmap.l_name = obj->path; | ||||
obj->linkmap.l_addr = obj->relocbase; | obj->linkmap.l_base = obj->mapbase; | ||||
obj->linkmap.l_ld = obj->dynamic; | obj->linkmap.l_ld = obj->dynamic; | ||||
obj->linkmap.l_addr = obj->relocbase; | |||||
if (r_debug.r_map == NULL) { | if (r_debug.r_map == NULL) { | ||||
r_debug.r_map = l; | r_debug.r_map = l; | ||||
return; | return; | ||||
} | } | ||||
/* | /* | ||||
* Scan to the end of the list, but not past the entry for the | * Scan to the end of the list, but not past the entry for the | ||||
▲ Show 20 Lines • Show All 1,734 Lines • Show Last 20 Lines |