Home
last modified time | relevance | path

Searched refs:scns (Results 1 - 16 of 16) sorted by relevance

/third_party/elfutils/libelf/
H A Delf_clone.c58 elf->state.elf32.scns.max * sizeof (Elf_Scn)); in elf_clone()
68 assert (offsetof (struct Elf, state.elf32.scns) in elf_clone()
69 == offsetof (struct Elf, state.elf64.scns)); in elf_clone()
70 retval->state.elf.scns_last = &retval->state.elf32.scns; in elf_clone()
71 retval->state.elf32.scns.max = elf->state.elf32.scns.max; in elf_clone()
H A Delf_begin.c329 assert (offsetof (struct Elf, state.elf32.scns) in file_read_elf()
330 == offsetof (struct Elf, state.elf64.scns)); in file_read_elf()
331 elf->state.elf32.scns.cnt = scncnt; in file_read_elf()
332 elf->state.elf32.scns.max = scnmax; in file_read_elf()
404 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
405 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
406 elf->state.elf32.scns.data[cnt].shdr.e32 = in file_read_elf()
411 elf->state.elf32.scns.data[cnt].rawdata_base = in file_read_elf()
412 elf->state.elf32.scns.data[cnt].data_base = in file_read_elf()
415 elf->state.elf32.scns in file_read_elf()
[all...]
H A Delf_getphdrnum.c58 const Elf_ScnList *const scns = (elf->class == ELFCLASS32 in __elf_getphdrnum_rdlock() local
59 ? &elf->state.elf32.scns in __elf_getphdrnum_rdlock()
60 : &elf->state.elf64.scns); in __elf_getphdrnum_rdlock()
67 if (likely (scns->cnt > 0)) in __elf_getphdrnum_rdlock()
69 Elf_Scn *scn = &elf->state.elf32.scns.data[0]; in __elf_getphdrnum_rdlock()
77 if (likely (scns->cnt > 0)) in __elf_getphdrnum_rdlock()
79 Elf_Scn *scn = &elf->state.elf64.scns.data[0]; in __elf_getphdrnum_rdlock()
H A Delf_newscn.c58 assert (offsetof (Elf, state.elf32.scns) in elf_newscn()
59 == offsetof (Elf, state.elf64.scns)); in elf_newscn()
71 || (offsetof (Elf, state.elf32.scns) in elf_newscn()
72 == offsetof (Elf, state.elf64.scns)) in elf_newscn()
73 ? &elf->state.elf32.scns : &elf->state.elf64.scns))) in elf_newscn()
H A Delf32_updatefile.c88 sort_sections (Elf_Scn **scns, Elf_ScnList *list) in sort_sections() argument
90 Elf_Scn **scnp = scns; in sort_sections()
96 qsort (scns, scnp - scns, sizeof (*scns), compare_sections); in sort_sections()
217 Elf_ScnList *list = &elf->state.ELFW(elf,LIBELFBITS).scns; in __elfw2()
218 Elf_Scn **scns = malloc (shnum * sizeof (Elf_Scn *)); in __elfw2() local
219 if (unlikely (scns == NULL)) in __elfw2()
233 sort_sections (scns, list); in __elfw2()
239 Elf_Scn *scn = scns[cn in __elfw2()
688 Elf_Scn **scns = malloc (shnum * sizeof (Elf_Scn *)); __elfw2() local
[all...]
H A Delf_end.c131 || (offsetof (struct Elf, state.elf32.scns) in elf_end()
132 == offsetof (struct Elf, state.elf64.scns)) in elf_end()
133 ? &elf->state.elf32.scns in elf_end()
134 : &elf->state.elf64.scns); in elf_end()
190 || (offsetof (struct Elf, state.elf32.scns) in elf_end()
191 == offsetof (struct Elf, state.elf64.scns)) in elf_end()
192 ? &elf->state.elf32.scns in elf_end()
193 : &elf->state.elf64.scns)) in elf_end()
H A Delf_getshdrnum.c61 || (offsetof (Elf, state.elf32.scns) in __elf_getshdrnum_rdlock()
62 == offsetof (Elf, state.elf64.scns)) in __elf_getshdrnum_rdlock()
63 ? &elf->state.elf32.scns : &elf->state.elf64.scns))) in __elf_getshdrnum_rdlock()
H A Delf_nextscn.c57 || (offsetof (Elf, state.elf32.scns) in elf_nextscn()
58 == offsetof (Elf, state.elf64.scns))) in elf_nextscn()
59 list = &elf->state.elf32.scns; in elf_nextscn()
61 list = &elf->state.elf64.scns; in elf_nextscn()
H A Delf_getshdrstrndx.c91 if (unlikely (elf->state.elf32.scns.cnt == 0)) in elf_getshdrstrndx()
99 if (elf->state.elf32.scns.data[0].shdr.e32 != NULL) in elf_getshdrstrndx()
101 num = elf->state.elf32.scns.data[0].shdr.e32->sh_link; in elf_getshdrstrndx()
156 if (unlikely (elf->state.elf64.scns.cnt == 0)) in elf_getshdrstrndx()
164 if (elf->state.elf64.scns.data[0].shdr.e64 != NULL) in elf_getshdrstrndx()
166 num = elf->state.elf64.scns.data[0].shdr.e64->sh_link; in elf_getshdrstrndx()
H A Delf_getscn.c59 || (offsetof (struct Elf, state.elf32.scns) in elf_getscn()
60 == offsetof (struct Elf, state.elf64.scns)) in elf_getscn()
61 ? &elf->state.elf32.scns : &elf->state.elf64.scns); in elf_getscn()
H A Delf32_newphdr.c100 if (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0) in ElfW2()
101 elf->state.ELFW(elf,LIBELFBITS).scns.data[0] in ElfW2()
125 Elf_Scn *scn0 = &elf->state.ELFW(elf,LIBELFBITS).scns.data[0]; in ElfW2()
149 if (elf->state.ELFW(elf,LIBELFBITS).scns.cnt == 0) in ElfW2()
151 assert (elf->state.ELFW(elf,LIBELFBITS).scns.max > 0); in ElfW2()
152 elf->state.ELFW(elf,LIBELFBITS).scns.cnt = 1; in ElfW2()
H A Delf_strptr.c93 || (offsetof (struct Elf, state.elf32.scns) in elf_strptr()
94 == offsetof (struct Elf, state.elf64.scns)) in elf_strptr()
95 ? &elf->state.elf32.scns : &elf->state.elf64.scns); in elf_strptr()
H A Delf32_getshdr.c155 elf->state.ELFW(elf,LIBELFBITS).scns.data[shdr[cnt].sh_link].shndx_index in ElfW2()
160 if (elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index == 0) in ElfW2()
161 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index in ElfW2()
215 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shdr.ELFW(e,LIBELFBITS) in ElfW2()
H A Delf32_updatenull.c178 assert (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0); in __elfw2()
184 Elf_Scn *scn0 = &elf->state.ELFW(elf,LIBELFBITS).scns.data[0]; in __elfw2()
191 list = &elf->state.ELFW(elf,LIBELFBITS).scns; in __elfw2()
H A Delf32_offscn.c57 Elf_ScnList *runp = &elf->state.ELFW(elf,LIBELFBITS).scns; in elfw2()
H A DlibelfP.h359 Elf_ScnList scns; member
383 Elf_ScnList scns; member

Completed in 8 milliseconds