/external/elfutils/libebl/ |
ebl_check_special_section.c | 58 ebl_check_special_section (ebl, ndx, shdr, sname) 60 int ndx; 64 return ebl != NULL && ebl->check_special_section (ebl, ndx, shdr, sname);
|
/external/elfutils/libelf/ |
gelf_update_lib.c | 63 gelf_update_lib (data, ndx, src) 65 int ndx; 71 if (unlikely (ndx < 0)) 90 if (unlikely ((ndx + 1) * sizeof (Elf64_Lib) > data_scn->d.d_size)) 94 ((Elf64_Lib *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_move.c | 63 gelf_update_move (data, ndx, src) 65 int ndx; 78 if (unlikely (ndx < 0) 79 || unlikely ((ndx + 1) * sizeof (GElf_Move) > data_scn->d.d_size)) 94 ((GElf_Move *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_syminfo.c | 63 gelf_update_syminfo (data, ndx, src) 65 int ndx; 75 if (unlikely (ndx < 0)) 96 if (unlikely ((ndx + 1) * sizeof (GElf_Syminfo) > data_scn->d.d_size)) 102 ((GElf_Syminfo *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_versym.c | 63 gelf_update_versym (data, ndx, src) 65 int ndx; 78 if (unlikely (ndx < 0) 79 || unlikely ((ndx + 1) * sizeof (GElf_Versym) > data_scn->d.d_size)) 94 ((GElf_Versym *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_getrel.c | 62 gelf_getrel (data, ndx, dst) 64 int ndx; 74 if (unlikely (ndx < 0)) 96 if (unlikely ((ndx + 1) * sizeof (Elf32_Rel) > data_scn->d.d_size)) 103 Elf32_Rel *src = &((Elf32_Rel *) data_scn->d.d_buf)[ndx]; 116 if (unlikely ((ndx + 1) * sizeof (Elf64_Rel) > data_scn->d.d_size)) 122 result = memcpy (dst, &((Elf64_Rel *) data_scn->d.d_buf)[ndx],
|
gelf_getrela.c | 62 gelf_getrela (data, ndx, dst) 64 int ndx; 74 if (unlikely (ndx < 0)) 96 if (unlikely ((ndx + 1) * sizeof (Elf32_Rela) > data_scn->d.d_size)) 103 Elf32_Rela *src = &((Elf32_Rela *) data_scn->d.d_buf)[ndx]; 117 if (unlikely ((ndx + 1) * sizeof (Elf64_Rela) > data_scn->d.d_size)) 123 result = memcpy (dst, &((Elf64_Rela *) data_scn->d.d_buf)[ndx],
|
gelf_update_auxv.c | 61 gelf_update_auxv (data, ndx, src) 63 int ndx; 73 if (unlikely (ndx < 0)) 103 if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size)) 109 auxv = &((Elf32_auxv_t *) data_scn->d.d_buf)[ndx]; 117 if (unlikely ((ndx + 1) * sizeof (Elf64_auxv_t) > data_scn->d.d_size)) 123 ((Elf64_auxv_t *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_dyn.c | 62 gelf_update_dyn (data, ndx, src) 64 int ndx; 74 if (unlikely (ndx < 0)) 105 if (unlikely ((ndx + 1) * sizeof (Elf32_Dyn) > data_scn->d.d_size)) 111 dyn = &((Elf32_Dyn *) data_scn->d.d_buf)[ndx]; 119 if (unlikely ((ndx + 1) * sizeof (Elf64_Dyn) > data_scn->d.d_size)) 125 ((Elf64_Dyn *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_sym.c | 63 gelf_update_sym (data, ndx, src) 65 int ndx; 75 if (unlikely (ndx < 0)) 105 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > data_scn->d.d_size)) 111 sym = &((Elf32_Sym *) data_scn->d.d_buf)[ndx]; 128 if (unlikely ((ndx + 1) * sizeof (Elf64_Sym) > data_scn->d.d_size)) 134 ((Elf64_Sym *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_symshndx.c | 64 gelf_update_symshndx (symdata, shndxdata, ndx, src, srcshndx) 67 int ndx; 80 if (unlikely (ndx < 0)) 102 if (unlikely ((ndx + 1) * sizeof (Elf32_Word) > shndxdata_scn->d.d_size)) 108 shndx = &((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx]; 131 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > symdata_scn->d.d_size)) 137 sym = &((Elf32_Sym *) symdata_scn->d.d_buf)[ndx]; 154 if (unlikely ((ndx + 1) * sizeof (Elf64_Sym) > symdata_scn->d.d_size)) 160 ((Elf64_Sym *) symdata_scn->d.d_buf)[ndx] = *src;
|
gelf_getlib.c | 63 gelf_getlib (data, ndx, dst) 65 int ndx; 89 if (unlikely ((ndx + 1) * sizeof (GElf_Lib) > data->d_size)) 93 *dst = ((GElf_Lib *) data->d_buf)[ndx];
|
gelf_getmove.c | 63 gelf_getmove (data, ndx, dst) 65 int ndx; 86 if (unlikely ((ndx + 1) * sizeof (GElf_Move) > data->d_size)) 95 *dst = ((GElf_Move *) data->d_buf)[ndx];
|
gelf_getsyminfo.c | 63 gelf_getsyminfo (data, ndx, dst) 65 int ndx; 87 if (unlikely ((ndx + 1) * sizeof (GElf_Syminfo) > data->d_size)) 93 *dst = ((GElf_Syminfo *) data->d_buf)[ndx];
|
gelf_getversym.c | 63 gelf_getversym (data, ndx, dst) 65 int ndx; 95 if (unlikely ((ndx + 1) * sizeof (GElf_Versym) > data->d_size)) 102 *dst = ((GElf_Versym *) data->d_buf)[ndx];
|
gelf_getsymshndx.c | 64 gelf_getsymshndx (symdata, shndxdata, ndx, dst, dstshndx) 67 int ndx; 93 if (unlikely ((ndx + 1) * sizeof (Elf32_Word) > shndxdata_scn->d.d_size)) 99 shndx = ((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx]; 113 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > symdata->d_size)) 119 src = &((Elf32_Sym *) symdata->d_buf)[ndx]; 142 if (unlikely ((ndx + 1) * sizeof (GElf_Sym) > symdata->d_size)) 148 *dst = ((GElf_Sym *) symdata->d_buf)[ndx];
|
gelf_getauxv.c | 62 gelf_getauxv (data, ndx, dst) 64 int ndx; 95 if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size)) 101 src = &((Elf32_auxv_t *) data_scn->d.d_buf)[ndx]; 115 if (unlikely ((ndx + 1) * sizeof (GElf_auxv_t) > data_scn->d.d_size)) 121 *dst = ((GElf_auxv_t *) data_scn->d.d_buf)[ndx];
|
gelf_getdyn.c | 63 gelf_getdyn (data, ndx, dst) 65 int ndx; 96 if (unlikely ((ndx + 1) * sizeof (Elf32_Dyn) > data_scn->d.d_size)) 102 src = &((Elf32_Dyn *) data_scn->d.d_buf)[ndx]; 117 if (unlikely ((ndx + 1) * sizeof (GElf_Dyn) > data_scn->d.d_size)) 123 *dst = ((GElf_Dyn *) data_scn->d.d_buf)[ndx];
|
gelf_getsym.c | 63 gelf_getsym (data, ndx, dst) 65 int ndx; 93 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > data->d_size)) 99 src = &((Elf32_Sym *) data->d_buf)[ndx]; 122 if (unlikely ((ndx + 1) * sizeof (GElf_Sym) > data->d_size)) 128 *dst = ((GElf_Sym *) data->d_buf)[ndx];
|
gelf_update_rel.c | 62 gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src) 71 if (unlikely (ndx < 0)) 102 if (unlikely ((ndx + 1) * sizeof (Elf32_Rel) > data_scn->d.d_size)) 108 rel = &((Elf32_Rel *) data_scn->d.d_buf)[ndx]; 117 if (unlikely ((ndx + 1) * sizeof (Elf64_Rel) > data_scn->d.d_size)) 123 ((Elf64_Rel *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_rela.c | 62 gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src) 71 if (unlikely (ndx < 0)) 104 if (unlikely ((ndx + 1) * sizeof (Elf32_Rela) > data_scn->d.d_size)) 110 rel = &((Elf32_Rela *) data_scn->d.d_buf)[ndx]; 120 if (unlikely ((ndx + 1) * sizeof (Elf64_Rela) > data_scn->d.d_size)) 126 ((Elf64_Rela *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_getphdr.c | 63 gelf_getphdr (elf, ndx, dst) 65 int ndx; 103 if (ndx >= elf->state.elf32.ehdr->e_phnum) 113 phdr += ndx; 141 if (ndx >= elf->state.elf64.ehdr->e_phnum) 148 result = memcpy (dst, phdr + ndx, sizeof (GElf_Phdr));
|
gelf_update_phdr.c | 62 gelf_update_phdr (Elf *elf, int ndx, GElf_Phdr *src) 104 if (unlikely (ndx >= elf->state.elf32.ehdr->e_phnum)) 111 phdr += ndx; 137 if (unlikely (ndx >= elf->state.elf64.ehdr->e_phnum)) 144 memcpy (phdr + ndx, src, sizeof (Elf64_Phdr));
|
/system/core/sh/ |
syntax.c | 12 #define ndx(ch) (ch + 1 - CHAR_MIN) macro 13 #define set(ch, val) [ndx(ch)] = val, 14 #define set_range(s, e, val) [ndx(s) ... ndx(e)] = val,
|
/external/elfutils/libdwfl/ |
core-file.c | 161 for (int ndx = 0; result >= 0 && ndx < ehdr->e_phnum; ++ndx) 164 GElf_Phdr *phdr = gelf_getphdr (elf, ndx, &phdr_mem); 173 result = dwfl_report_segment (dwfl, ndx, phdr, 0, NULL); 258 dwfl_elf_phdr_memory_callback (Dwfl *dwfl, int ndx, 266 if (ndx == -1) 280 if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL)) 297 if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL)) 402 int ndx = dwfl_report_core_segments (dwfl, elf, ehdr, ¬es_phdr) local [all...] |