Home
last modified time | relevance | path

Searched refs:data_scn (Results 1 – 21 of 21) sorted by relevance

/external/elfutils/libelf/
Dgelf_getdyn.c68 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];
Dgelf_getauxv.c67 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];
Dgelf_update_move.c68 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);
Dgelf_update_versym.c68 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);
Dgelf_getrel.c67 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],
Dgelf_update_verdef.c68 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);
Dgelf_update_vernaux.c68 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);
Dgelf_update_verdaux.c68 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);
Dgelf_update_verneed.c68 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);
Dgelf_getrela.c67 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],
Delf_flagdata.c67 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));
Dgelf_update_auxv.c66 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;
Dgelf_update_sym.c68 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;
Dgelf_update_dyn.c67 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;
Dgelf_update_rel.c64 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()
Dgelf_update_rela.c64 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()
Dgelf_update_lib.c77 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;
Dgelf_update_syminfo.c68 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;
Dgelf_getsym.c68 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);
Dgelf_getlib.c77 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);
Dgelf_getversym.c68 Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data; local
84 scn = data_scn->s;