Lines Matching refs:drs
57 Dwarf_Rel_Section drs; in dwarf_get_relocation_info() local
83 drs = dbg->dbgp_drspos; in dwarf_get_relocation_info()
84 assert(drs->drs_ds != NULL && drs->drs_ref != NULL); in dwarf_get_relocation_info()
85 assert(drs->drs_drecnt > 0); in dwarf_get_relocation_info()
87 *elf_section_index = drs->drs_ds->ds_ndx; in dwarf_get_relocation_info()
88 *elf_section_link = drs->drs_ref->ds_ndx; in dwarf_get_relocation_info()
89 *reloc_entry_count = drs->drs_drecnt; in dwarf_get_relocation_info()
91 if (drs->drs_drd == NULL) { in dwarf_get_relocation_info()
92 drs->drs_drd = calloc(*reloc_entry_count, in dwarf_get_relocation_info()
94 if (drs->drs_drd == NULL) { in dwarf_get_relocation_info()
98 for (i = 0, dre = STAILQ_FIRST(&drs->drs_dre); in dwarf_get_relocation_info()
101 drs->drs_drd[i].drd_type = dre->dre_type; in dwarf_get_relocation_info()
102 drs->drs_drd[i].drd_length = dre->dre_length; in dwarf_get_relocation_info()
103 drs->drs_drd[i].drd_offset = dre->dre_offset; in dwarf_get_relocation_info()
104 drs->drs_drd[i].drd_symbol_index = dre->dre_symndx; in dwarf_get_relocation_info()
109 *reloc_buffer = drs->drs_drd; in dwarf_get_relocation_info()