Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/rtld-elf/rtld.c
Show First 20 Lines • Show All 1,258 Lines • ▼ Show 20 Lines | #ifdef __mips__ | ||||
case DT_MIPS_GOTSYM: | case DT_MIPS_GOTSYM: | ||||
obj->gotsym = dynp->d_un.d_val; | obj->gotsym = dynp->d_un.d_val; | ||||
break; | break; | ||||
case DT_MIPS_RLD_MAP: | case DT_MIPS_RLD_MAP: | ||||
*((Elf_Addr *)(dynp->d_un.d_ptr)) = (Elf_Addr) &r_debug; | *((Elf_Addr *)(dynp->d_un.d_ptr)) = (Elf_Addr) &r_debug; | ||||
break; | break; | ||||
case DT_MIPS_RLD_MAP_REL: | |||||
// The MIPS_RLD_MAP_REL tag stores the offset to the .rld_map | |||||
// section relative to the address of the tag itself. | |||||
*((Elf_Addr *)(__DECONST(char*, dynp) + dynp->d_un.d_val)) = | |||||
(Elf_Addr) &r_debug; | |||||
break; | |||||
case DT_MIPS_PLTGOT: | case DT_MIPS_PLTGOT: | ||||
obj->mips_pltgot = (Elf_Addr *)(obj->relocbase + | obj->mips_pltgot = (Elf_Addr *)(obj->relocbase + | ||||
dynp->d_un.d_ptr); | dynp->d_un.d_ptr); | ||||
break; | break; | ||||
#endif | #endif | ||||
#ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
▲ Show 20 Lines • Show All 4,328 Lines • Show Last 20 Lines |