HomeSort by relevance Sort by last modified time
    Searched refs:data_scn (Results 1 - 21 of 21) sorted by null

  /external/elfutils/0.153/libelf/
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));
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);
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);
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);
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);
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);
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);
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];
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];
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],
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],
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;
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;
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;
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;
gelf_update_rel.c 64 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) dst; local
77 if (unlikely (data_scn->d.d_type != ELF_T_REL))
84 scn = data_scn->s;
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 64 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) dst; local
77 if (unlikely (data_scn->d.d_type != ELF_T_RELA))
84 scn = data_scn->s;
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_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;
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);
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);
gelf_getversym.c 68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local
84 scn = data_scn->s;

Completed in 494 milliseconds