/external/elfutils/libelf/ |
elf_flagdata.c | 43 Elf_Data_Scn *data_scn; local 49 data_scn = (Elf_Data_Scn *) data; 51 if (data_scn == NULL || unlikely (data_scn->s->elf->kind != ELF_K_ELF)) 58 result = (data_scn->s->flags |= (flags & ELF_F_DIRTY)); 60 result = (data_scn->s->flags &= ~(flags & ELF_F_DIRTY));
|
gelf_update_move.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 54 if (INVALID_NDX (ndx, GElf_Move, &data_scn->d)) 60 if (unlikely (data_scn->d.d_type != ELF_T_MOVE)) 67 rwlock_wrlock (data_scn->s->elf->lock); 69 ((GElf_Move *) data_scn->d.d_buf)[ndx] = *src; 72 data_scn->s->flags |= ELF_F_DIRTY; 74 rwlock_unlock (data_scn->s->elf->lock);
|
gelf_update_verdaux.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 55 || unlikely ((offset + sizeof (GElf_Verdaux)) > data_scn->d.d_size)) 61 if (unlikely (data_scn->d.d_type != ELF_T_VDEF)) 68 rwlock_wrlock (data_scn->s->elf->lock); 70 memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Verdaux)); 73 data_scn->s->flags |= ELF_F_DIRTY; 75 rwlock_unlock (data_scn->s->elf->lock);
|
gelf_update_verdef.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 55 || unlikely ((offset + sizeof (GElf_Verdef)) > data_scn->d.d_size)) 61 if (unlikely (data_scn->d.d_type != ELF_T_VDEF)) 68 rwlock_wrlock (data_scn->s->elf->lock); 70 memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Verdef)); 73 data_scn->s->flags |= ELF_F_DIRTY; 75 rwlock_unlock (data_scn->s->elf->lock);
|
gelf_update_vernaux.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 55 || unlikely ((offset + sizeof (GElf_Vernaux)) > data_scn->d.d_size)) 61 if (unlikely (data_scn->d.d_type != ELF_T_VNEED)) 68 rwlock_wrlock (data_scn->s->elf->lock); 70 memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Vernaux)); 73 data_scn->s->flags |= ELF_F_DIRTY; 75 rwlock_unlock (data_scn->s->elf->lock);
|
gelf_update_verneed.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 55 || unlikely ((offset + sizeof (GElf_Verneed)) > data_scn->d.d_size)) 61 if (unlikely (data_scn->d.d_type != ELF_T_VNEED)) 68 rwlock_wrlock (data_scn->s->elf->lock); 70 memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Verneed)); 73 data_scn->s->flags |= ELF_F_DIRTY; 75 rwlock_unlock (data_scn->s->elf->lock);
|
gelf_update_versym.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 54 if (INVALID_NDX (ndx, GElf_Versym, &data_scn->d)) 60 if (unlikely (data_scn->d.d_type != ELF_T_HALF)) 67 rwlock_wrlock (data_scn->s->elf->lock); 69 ((GElf_Versym *) data_scn->d.d_buf)[ndx] = *src; 72 data_scn->s->flags |= ELF_F_DIRTY; 74 rwlock_unlock (data_scn->s->elf->lock);
|
gelf_getauxv.c | 43 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 47 if (data_scn == NULL) 50 if (unlikely (data_scn->d.d_type != ELF_T_AUXV)) 56 elf = data_scn->s->elf; 71 if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size)) 77 src = &((Elf32_auxv_t *) data_scn->d.d_buf)[ndx]; 91 if (unlikely ((ndx + 1) * sizeof (GElf_auxv_t) > data_scn->d.d_size)) 97 memcpy (dst, data_scn->d.d_buf + ndx * sizeof (GElf_auxv_t),
|
gelf_getdyn.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 48 if (data_scn == NULL) 51 if (unlikely (data_scn->d.d_type != ELF_T_DYN)) 57 elf = data_scn->s->elf; 72 if (INVALID_NDX (ndx, Elf32_Dyn, &data_scn->d)) 78 src = &((Elf32_Dyn *) data_scn->d.d_buf)[ndx]; 93 if (INVALID_NDX (ndx, GElf_Dyn, &data_scn->d)) 99 *dst = ((GElf_Dyn *) data_scn->d.d_buf)[ndx];
|
gelf_getrel.c | 43 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 47 if (data_scn == NULL) 50 if (unlikely (data_scn->d.d_type != ELF_T_REL)) 59 scn = data_scn->s; 66 if (INVALID_NDX (ndx, Elf32_Rel, &data_scn->d)) 73 Elf32_Rel *src = &((Elf32_Rel *) data_scn->d.d_buf)[ndx]; 86 if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d)) 92 result = memcpy (dst, &((Elf64_Rel *) data_scn->d.d_buf)[ndx],
|
gelf_getrela.c | 43 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 47 if (data_scn == NULL) 50 if (unlikely (data_scn->d.d_type != ELF_T_RELA)) 59 scn = data_scn->s; 66 if (INVALID_NDX (ndx, Elf32_Rela, &data_scn->d)) 73 Elf32_Rela *src = &((Elf32_Rela *) data_scn->d.d_buf)[ndx]; 87 if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d)) 93 result = memcpy (dst, &((Elf64_Rela *) data_scn->d.d_buf)[ndx],
|
gelf_update_lib.c | 47 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; 48 if (unlikely (data_scn->d.d_type != ELF_T_LIB)) 55 Elf_Scn *scn = data_scn->s; 60 if (INVALID_NDX (ndx, Elf64_Lib, &data_scn->d)) 64 ((Elf64_Lib *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_syminfo.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 51 if (unlikely (data_scn->d.d_type != ELF_T_SYMINFO)) 62 scn = data_scn->s; 66 if (INVALID_NDX (ndx, GElf_Syminfo, &data_scn->d)) 72 ((GElf_Syminfo *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_auxv.c | 42 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 55 if (unlikely (data_scn->d.d_type != ELF_T_AUXV)) 62 scn = data_scn->s; 79 if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size)) 85 auxv = &((Elf32_auxv_t *) data_scn->d.d_buf)[ndx]; 93 if (unlikely ((ndx + 1) * sizeof (Elf64_auxv_t) > data_scn->d.d_size)) 99 ((Elf64_auxv_t *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_dyn.c | 43 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 50 if (unlikely (data_scn->d.d_type != ELF_T_DYN)) 57 scn = data_scn->s; 75 if (INVALID_NDX (ndx, Elf32_Dyn, &data_scn->d)) 81 dyn = &((Elf32_Dyn *) data_scn->d.d_buf)[ndx]; 89 if (INVALID_NDX (ndx, Elf64_Dyn, &data_scn->d)) 95 ((Elf64_Dyn *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_rel.c | 43 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) dst; local 50 if (unlikely (data_scn->d.d_type != ELF_T_REL)) 57 scn = data_scn->s; 75 if (INVALID_NDX (ndx, Elf32_Rel, &data_scn->d)) 81 rel = &((Elf32_Rel *) data_scn->d.d_buf)[ndx]; 90 if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d)) 96 ((Elf64_Rel *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_rela.c | 43 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) dst; local 50 if (unlikely (data_scn->d.d_type != ELF_T_RELA)) 57 scn = data_scn->s; 77 if (INVALID_NDX (ndx, Elf32_Rela, &data_scn->d)) 83 rel = &((Elf32_Rela *) data_scn->d.d_buf)[ndx]; 93 if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d)) 99 ((Elf64_Rela *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_update_sym.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 51 if (unlikely (data_scn->d.d_type != ELF_T_SYM)) 58 scn = data_scn->s; 75 if (INVALID_NDX (ndx, Elf32_Sym, &data_scn->d)) 81 sym = &((Elf32_Sym *) data_scn->d.d_buf)[ndx]; 98 if (INVALID_NDX (ndx, Elf64_Sym, &data_scn->d)) 104 ((Elf64_Sym *) data_scn->d.d_buf)[ndx] = *src;
|
gelf_getlib.c | 53 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 55 rwlock_rdlock (data_scn->s->elf->lock); 74 rwlock_unlock (data_scn->s->elf->lock);
|
gelf_getsym.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 56 rwlock_rdlock (data_scn->s->elf->lock); 61 if (data_scn->s->elf->class == ELFCLASS32) 110 rwlock_unlock (data_scn->s->elf->lock);
|
gelf_getversym.c | 44 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local 60 scn = data_scn->s;
|