/external/elfutils/libelf/ |
D | gelf_getdyn.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 72 if (data_scn == NULL) 75 if (unlikely (data_scn->d.d_type != ELF_T_DYN)) 81 elf = data_scn->s->elf; 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];
|
D | gelf_getauxv.c | 67 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 71 if (data_scn == NULL) 74 if (unlikely (data_scn->d.d_type != ELF_T_AUXV)) 80 elf = data_scn->s->elf; 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];
|
D | gelf_update_move.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 79 || unlikely ((ndx + 1) * sizeof (GElf_Move) > data_scn->d.d_size)) 85 if (unlikely (data_scn->d.d_type != ELF_T_MOVE)) 92 rwlock_wrlock (data_scn->s->elf->lock); 94 ((GElf_Move *) data_scn->d.d_buf)[ndx] = *src; 97 data_scn->s->flags |= ELF_F_DIRTY; 99 rwlock_unlock (data_scn->s->elf->lock);
|
D | gelf_update_versym.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 79 || unlikely ((ndx + 1) * sizeof (GElf_Versym) > data_scn->d.d_size)) 85 if (unlikely (data_scn->d.d_type != ELF_T_HALF)) 92 rwlock_wrlock (data_scn->s->elf->lock); 94 ((GElf_Versym *) data_scn->d.d_buf)[ndx] = *src; 97 data_scn->s->flags |= ELF_F_DIRTY; 99 rwlock_unlock (data_scn->s->elf->lock);
|
D | gelf_getrel.c | 67 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 71 if (data_scn == NULL) 80 if (unlikely (data_scn->d.d_type != ELF_T_REL)) 89 scn = data_scn->s; 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],
|
D | gelf_update_verdef.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 79 || unlikely ((offset + sizeof (GElf_Verdef)) > data_scn->d.d_size)) 85 if (unlikely (data_scn->d.d_type != ELF_T_VDEF)) 92 rwlock_wrlock (data_scn->s->elf->lock); 94 memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Verdef)); 97 data_scn->s->flags |= ELF_F_DIRTY; 99 rwlock_unlock (data_scn->s->elf->lock);
|
D | gelf_update_vernaux.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 79 || unlikely ((offset + sizeof (GElf_Vernaux)) > data_scn->d.d_size)) 85 if (unlikely (data_scn->d.d_type != ELF_T_VNEED)) 92 rwlock_wrlock (data_scn->s->elf->lock); 94 memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Vernaux)); 97 data_scn->s->flags |= ELF_F_DIRTY; 99 rwlock_unlock (data_scn->s->elf->lock);
|
D | gelf_update_verdaux.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 79 || unlikely ((offset + sizeof (GElf_Verdaux)) > data_scn->d.d_size)) 85 if (unlikely (data_scn->d.d_type != ELF_T_VDEF)) 92 rwlock_wrlock (data_scn->s->elf->lock); 94 memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Verdaux)); 97 data_scn->s->flags |= ELF_F_DIRTY; 99 rwlock_unlock (data_scn->s->elf->lock);
|
D | gelf_update_verneed.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 79 || unlikely ((offset + sizeof (GElf_Verneed)) > data_scn->d.d_size)) 85 if (unlikely (data_scn->d.d_type != ELF_T_VNEED)) 92 rwlock_wrlock (data_scn->s->elf->lock); 94 memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Verneed)); 97 data_scn->s->flags |= ELF_F_DIRTY; 99 rwlock_unlock (data_scn->s->elf->lock);
|
D | gelf_getrela.c | 67 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 71 if (data_scn == NULL) 80 if (unlikely (data_scn->d.d_type != ELF_T_RELA)) 89 scn = data_scn->s; 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],
|
D | elf_flagdata.c | 67 Elf_Data_Scn *data_scn; local 73 data_scn = (Elf_Data_Scn *) data; 75 if (data_scn == NULL || unlikely (data_scn->s->elf->kind != ELF_K_ELF)) 82 result = (data_scn->s->flags |= (flags & ELF_F_DIRTY)); 84 result = (data_scn->s->flags &= ~(flags & ELF_F_DIRTY));
|
D | gelf_update_auxv.c | 66 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 79 if (unlikely (data_scn->d.d_type != ELF_T_AUXV)) 86 scn = data_scn->s; 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;
|
D | gelf_update_sym.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 81 if (unlikely (data_scn->d.d_type != ELF_T_SYM)) 88 scn = data_scn->s; 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;
|
D | gelf_update_dyn.c | 67 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 80 if (unlikely (data_scn->d.d_type != ELF_T_DYN)) 87 scn = data_scn->s; 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;
|
D | gelf_update_rel.c | 64 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) dst; in gelf_update_rel() local 77 if (unlikely (data_scn->d.d_type != ELF_T_REL)) in gelf_update_rel() 84 scn = data_scn->s; in gelf_update_rel() 102 if (unlikely ((ndx + 1) * sizeof (Elf32_Rel) > data_scn->d.d_size)) in gelf_update_rel() 108 rel = &((Elf32_Rel *) data_scn->d.d_buf)[ndx]; in gelf_update_rel() 117 if (unlikely ((ndx + 1) * sizeof (Elf64_Rel) > data_scn->d.d_size)) in gelf_update_rel() 123 ((Elf64_Rel *) data_scn->d.d_buf)[ndx] = *src; in gelf_update_rel()
|
D | gelf_update_rela.c | 64 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) dst; in gelf_update_rela() local 77 if (unlikely (data_scn->d.d_type != ELF_T_RELA)) in gelf_update_rela() 84 scn = data_scn->s; in gelf_update_rela() 104 if (unlikely ((ndx + 1) * sizeof (Elf32_Rela) > data_scn->d.d_size)) in gelf_update_rela() 110 rel = &((Elf32_Rela *) data_scn->d.d_buf)[ndx]; in gelf_update_rela() 120 if (unlikely ((ndx + 1) * sizeof (Elf64_Rela) > data_scn->d.d_size)) in gelf_update_rela() 126 ((Elf64_Rela *) data_scn->d.d_buf)[ndx] = *src; in gelf_update_rela()
|
D | gelf_update_lib.c | 77 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 78 if (unlikely (data_scn->d.d_type != ELF_T_LIB)) 85 Elf_Scn *scn = data_scn->s; 90 if (unlikely ((ndx + 1) * sizeof (Elf64_Lib) > data_scn->d.d_size)) 94 ((Elf64_Lib *) data_scn->d.d_buf)[ndx] = *src;
|
D | gelf_update_syminfo.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 81 if (unlikely (data_scn->d.d_type != ELF_T_SYMINFO)) 92 scn = data_scn->s; 96 if (unlikely ((ndx + 1) * sizeof (GElf_Syminfo) > data_scn->d.d_size)) 102 ((GElf_Syminfo *) data_scn->d.d_buf)[ndx] = *src;
|
D | gelf_getsym.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 80 rwlock_rdlock (data_scn->s->elf->lock); 85 if (data_scn->s->elf->class == ELFCLASS32) 134 rwlock_unlock (data_scn->s->elf->lock);
|
D | gelf_getlib.c | 77 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 79 rwlock_rdlock (data_scn->s->elf->lock); 98 rwlock_unlock (data_scn->s->elf->lock);
|
D | gelf_getversym.c | 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 84 scn = data_scn->s;
|