/external/elfutils/0.153/libelf/ |
D | elf_getdata.c | 134 convert_data (Elf_Scn *scn, int version __attribute__ ((unused)), int eclass, in convert_data() argument 141 if (((((size_t) (char *) scn->rawdata_base)) & (align - 1)) == 0) in convert_data() 143 scn->data_base = scn->rawdata_base; in convert_data() 146 scn->data_base = (char *) malloc (size); in convert_data() 147 if (scn->data_base == NULL) in convert_data() 154 memcpy (scn->data_base, scn->rawdata_base, size); in convert_data() 161 scn->data_base = (char *) malloc (size); in convert_data() 162 if (scn->data_base == NULL) in convert_data() 175 fp (scn->data_base, scn->rawdata_base, size, 0); in convert_data() 178 scn->data_list.data.d.d_buf = scn->data_base; in convert_data() [all …]
|
D | elf_newdata.c | 62 elf_newdata (Elf_Scn *scn) in elf_newdata() argument 66 if (scn == NULL) in elf_newdata() 69 if (unlikely (scn->index == 0)) in elf_newdata() 76 if (scn->elf->class == ELFCLASS32 in elf_newdata() 79 ? scn->elf->state.elf32.ehdr == NULL in elf_newdata() 80 : scn->elf->state.elf64.ehdr == NULL) in elf_newdata() 86 rwlock_wrlock (scn->elf->lock); in elf_newdata() 88 if (scn->data_read && scn->data_list_rear == NULL) in elf_newdata() 92 result = &scn->data_list; in elf_newdata() 107 if (scn->data_list_rear == NULL) in elf_newdata() [all …]
|
D | elf32_getshdr.c | 70 load_shdr_wrlock (Elf_Scn *scn) in ElfW2() 75 Elf *elf = scn->elf; in ElfW2() 79 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2() 214 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2() 222 scn_valid (Elf_Scn *scn) in scn_valid() argument 224 if (scn == NULL) in scn_valid() 227 if (unlikely (scn->elf->state.elf.ehdr == NULL)) in scn_valid() 233 if (unlikely (scn->elf->class != ELFW(ELFCLASS,LIBELFBITS))) in scn_valid() 243 __elfw2(LIBELFBITS,getshdr_rdlock) (scn) 244 Elf_Scn *scn; [all …]
|
D | elf_rawdata.c | 61 elf_rawdata (scn, data) in elf_rawdata() argument 62 Elf_Scn *scn; in elf_rawdata() 65 if (scn == NULL || scn->elf->kind != ELF_K_ELF) 77 || (scn->data_read != 0 && (scn->flags & ELF_F_FILEDATA) == 0)) 86 if (scn->data_read == 0) 91 if (__libelf_set_rawdata (scn) != 0) 97 return &scn->rawdata.d;
|
D | gelf_getshdr.c | 62 gelf_getshdr (scn, dst) in gelf_getshdr() argument 63 Elf_Scn *scn; in gelf_getshdr() 68 if (scn == NULL) 77 rwlock_rdlock (scn->elf->lock); 79 if (scn->elf->class == ELFCLASS32) 83 = scn->shdr.e32 ?: __elf32_getshdr_rdlock (scn); 109 = scn->shdr.e64 ?: __elf64_getshdr_rdlock (scn); 122 rwlock_unlock (scn->elf->lock);
|
D | elf32_updatefile.c | 247 Elf_Scn *scn = scns[cnt]; in __elfw2() local 250 && (scn->shdr_flags & ELF_F_MALLOCED) == 0 in __elfw2() 251 && scn->shdr.ELFW(e,LIBELFBITS) != &shdr_dest[scn->index]) in __elfw2() 254 < (char *) scn->shdr.ELFW(e,LIBELFBITS)); in __elfw2() 255 assert ((char *) scn->shdr.ELFW(e,LIBELFBITS) in __elfw2() 260 scn->shdr.ELFW(e,LIBELFBITS) in __elfw2() 261 = memcpy (p, scn->shdr.ELFW(e,LIBELFBITS), in __elfw2() 272 <= (char *) scn->data_list.data.d.d_buf) in __elfw2() 273 && ((char *) scn->data_list.data.d.d_buf in __elfw2() 277 + scn->shdr.ELFW(e,LIBELFBITS)->sh_offset) in __elfw2() [all …]
|
D | gelf_update_shdr.c | 62 gelf_update_shdr (Elf_Scn *scn, GElf_Shdr *src) in gelf_update_shdr() argument 67 if (scn == NULL || src == NULL) in gelf_update_shdr() 70 elf = scn->elf; in gelf_update_shdr() 76 = scn->shdr.e32 ?: __elf32_getshdr_wrlock (scn); in gelf_update_shdr() 111 = scn->shdr.e64 ?: __elf64_getshdr_wrlock (scn); in gelf_update_shdr() 124 scn->shdr_flags |= ELF_F_DIRTY; in gelf_update_shdr()
|
D | elf_flagscn.c | 62 elf_flagscn (scn, cmd, flags) in elf_flagscn() argument 63 Elf_Scn *scn; in elf_flagscn() 69 if (scn == NULL) 72 if (unlikely (scn->elf->kind != ELF_K_ELF)) 79 result = (scn->flags |= (flags & ELF_F_DIRTY)); 81 result = (scn->flags &= ~(flags & ELF_F_DIRTY));
|
D | elf_flagshdr.c | 62 elf_flagshdr (scn, cmd, flags) in elf_flagshdr() argument 63 Elf_Scn *scn; in elf_flagshdr() 69 if (scn == NULL) 72 if (unlikely (scn->elf->kind != ELF_K_ELF)) 79 result = (scn->shdr_flags |= (flags & ELF_F_DIRTY)); 81 result = (scn->shdr_flags &= ~(flags & ELF_F_DIRTY));
|
D | elf_nextscn.c | 63 elf_nextscn (elf, scn) in elf_nextscn() argument 65 Elf_Scn *scn; 74 if (scn == NULL) 92 Elf_ScnList *list = scn->list; 94 if (scn + 1 < &list->data[list->cnt]) 95 result = scn + 1; 96 else if (scn + 1 == &list->data[list->max]
|
D | gelf_update_auxv.c | 67 Elf_Scn *scn; local 86 scn = data_scn->s; 87 rwlock_wrlock (scn->elf->lock); 89 if (scn->elf->class == ELFCLASS32) 129 scn->flags |= ELF_F_DIRTY; 132 rwlock_unlock (scn->elf->lock);
|
D | elf32_checksum.c | 84 Elf_Scn *scn; variable 117 scn = NULL; 118 while ((scn = INTUSE(elf_nextscn) (elf, scn)) != NULL) 125 shdr = INTUSE(gelf_getshdr) (scn, &shdr_mem); 150 data = INTUSE(elf_rawdata) (scn, NULL); 162 while ((data = INTUSE(elf_getdata) (scn, data)) != NULL)
|
D | gelf_update_rel.c | 65 Elf_Scn *scn; in gelf_update_rel() local 84 scn = data_scn->s; in gelf_update_rel() 85 rwlock_wrlock (scn->elf->lock); in gelf_update_rel() 87 if (scn->elf->class == ELFCLASS32) in gelf_update_rel() 129 scn->flags |= ELF_F_DIRTY; in gelf_update_rel() 132 rwlock_unlock (scn->elf->lock); in gelf_update_rel()
|
D | gelf_update_dyn.c | 68 Elf_Scn *scn; local 87 scn = data_scn->s; 88 rwlock_wrlock (scn->elf->lock); 90 if (scn->elf->class == ELFCLASS32) 131 scn->flags |= ELF_F_DIRTY; 134 rwlock_unlock (scn->elf->lock);
|
D | gelf_update_sym.c | 69 Elf_Scn *scn; local 88 scn = data_scn->s; 89 rwlock_wrlock (scn->elf->lock); 91 if (scn->elf->class == ELFCLASS32) 140 scn->flags |= ELF_F_DIRTY; 143 rwlock_unlock (scn->elf->lock);
|
D | gelf_update_rela.c | 65 Elf_Scn *scn; in gelf_update_rela() local 84 scn = data_scn->s; in gelf_update_rela() 85 rwlock_wrlock (scn->elf->lock); in gelf_update_rela() 87 if (scn->elf->class == ELFCLASS32) in gelf_update_rela() 132 scn->flags |= ELF_F_DIRTY; in gelf_update_rela() 135 rwlock_unlock (scn->elf->lock); in gelf_update_rela()
|
D | elf_ndxscn.c | 62 elf_ndxscn (scn) in elf_ndxscn() argument 63 Elf_Scn *scn; in elf_ndxscn() 65 if (scn == NULL) 68 return scn->index;
|
D | gelf_update_syminfo.c | 69 Elf_Scn *scn; local 92 scn = data_scn->s; 93 rwlock_wrlock (scn->elf->lock); 107 scn->flags |= ELF_F_DIRTY; 110 rwlock_unlock (scn->elf->lock);
|
D | elf_scnshndx.c | 59 elf_scnshndx (Elf_Scn *scn) in elf_scnshndx() argument 61 if (unlikely (scn->shndx_index == 0)) in elf_scnshndx() 66 (void) INTUSE(gelf_getshdr) (scn, &shdr_mem); in elf_scnshndx() 69 return scn->shndx_index; in elf_scnshndx()
|
D | elf32_updatenull.c | 219 Elf_Scn *scn = &list->data[cnt]; in __elfw2() local 220 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2() 272 scn->shdr_flags); in __elfw2() 274 if (scn->data_read == 0 in __elfw2() 275 && __libelf_set_rawdata_wrlock (scn) != 0) in __elfw2() 282 Elf_Data_List *dl = &scn->data_list; in __elfw2() 287 if (dl == &scn->data_list && data->d_buf == NULL in __elfw2() 288 && scn->rawdata.d.d_buf != NULL) in __elfw2() 289 data = &scn->rawdata.d; in __elfw2() 337 offset += scn->rawdata.d.d_size; in __elfw2() [all …]
|
/external/elfutils/0.153/libasm/ |
D | asm_end.c | 87 Elf_Scn *scn = elf_getscn (ctx->out.elf, asmscn->data.main.scnndx); in binary_end() 89 Elf_Scn *scn = asmscn->data.main.scn; in binary_end() local 110 Elf_Data *newdata = elf_newdata (scn); in binary_end() 197 syment.st_value = sym->scn->offset + sym->offset; in binary_end() 206 Elf_Scn *scn = (sym->scn->subsection_id == 0 in binary_end() local 207 ? sym->scn->data.main.scn in binary_end() 208 : sym->scn->data.up->data.main.scn); in binary_end() 211 if (unlikely (scn == ASM_ABS_SCN)) in binary_end() 213 else if (unlikely (scn == ASM_COM_SCN)) in binary_end() 215 else if (unlikely ((ndx = elf_ndxscn (scn)) >= SHN_LORESERVE)) in binary_end() [all …]
|
/external/elfutils/0.153/libdwfl/ |
D | derelocate.c | 57 Elf_Scn *scn; member 68 Elf_Scn *scn; member 108 Elf_Scn *scn = NULL; in cache_sections() local 109 while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL) in cache_sections() 112 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in cache_sections() 121 elf_ndxscn (scn), in cache_sections() 124 shdr = gelf_getshdr (scn, &shdr_mem); in cache_sections() 137 newref->scn = scn; in cache_sections() 152 if (shdr->sh_info < elf_ndxscn (scn)) in cache_sections() 158 if (sec->scn == tscn) in cache_sections() [all …]
|
/external/bluetooth/bluedroid/btif/src/ |
D | btif_sock_sdp.c | 137 static int add_pbap_sdp(const char* p_service_name, int scn) in add_pbap_sdp() argument 147 APPL_TRACE_DEBUG("add_pbap_sdd:scn %d, service name %s", scn, p_service_name); in add_pbap_sdp() 164 protoList[1].params[0] = scn; in add_pbap_sdp() 226 static int add_maps_sdp(const char* p_service_name, int scn) in add_maps_sdp() argument 239 APPL_TRACE_DEBUG("add_maps_sdp: scn %d, service name %s", scn, p_service_name); in add_maps_sdp() 275 protoList[1].params[0] = scn; in add_maps_sdp() 348 static int add_ops_sdp(const char *p_service_name,int scn) in add_ops_sdp() argument 363 APPL_TRACE_DEBUG("scn %d, service name %s", scn, p_service_name); in add_ops_sdp() 375 protoList[1].params[0] = scn; in add_ops_sdp() 420 static int add_spp_sdp(const char *service_name, int scn) in add_spp_sdp() argument [all …]
|
D | btif_sock_rfc.c | 86 int scn; member 130 rfc_slots[i].scn = -1; in init_rfc_slots() 262 rs->scn = channel; in alloc_rfc_slot() 282 …ccept_rs = alloc_rfc_slot(addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, FALSE); in create_srv_accept_rfc_slot() 377 if(BTA_JvRfcommConnect(rs->security, rs->role, rs->scn, rs->addr.address, in btsock_rfc_connect() 422 int scn = rs->scn; in create_server_sdp_record() local 423 if(rs->scn > 0) in create_server_sdp_record() 425 if(BTM_TryAllocateSCN(rs->scn) == FALSE) in create_server_sdp_record() 427 APPL_TRACE_ERROR("rfc channel:%d already in use", scn); in create_server_sdp_record() 431 else if((rs->scn = BTM_AllocateSCN()) == 0) in create_server_sdp_record() [all …]
|
/external/ltrace/ |
D | ltrace-elf.c | 116 elf_loaddata(Elf_Scn *scn, GElf_Shdr *shdr) in elf_loaddata() argument 118 Elf_Data *data = elf_getdata(scn, NULL); in elf_loaddata() 119 if (data == NULL || elf_getdata(scn, data) != NULL in elf_loaddata() 132 Elf_Scn *scn; in elf_get_section_if() local 135 scn = elf_getscn(lte->elf, i); in elf_get_section_if() 136 if (scn == NULL || gelf_getshdr(scn, &shdr) == NULL) { in elf_get_section_if() 140 if (predicate(scn, &shdr, data)) { in elf_get_section_if() 141 *tgt_sec = scn; in elf_get_section_if() 152 inside_p(Elf_Scn *scn, GElf_Shdr *shdr, void *data) in inside_p() argument 168 type_p(Elf_Scn *scn, GElf_Shdr *shdr, void *data) in type_p() argument [all …]
|