/external/elfutils/libelf/ |
D | elf_getphdrnum.c | 57 const Elf_ScnList *const scns = (elf->class == ELFCLASS32 in __elf_getphdrnum_rdlock() local 58 ? &elf->state.elf32.scns in __elf_getphdrnum_rdlock() 59 : &elf->state.elf64.scns); in __elf_getphdrnum_rdlock() 66 if (likely (scns->cnt > 0 in __elf_getphdrnum_rdlock() 67 && elf->state.elf32.scns.data[0].shdr.e32 != NULL)) in __elf_getphdrnum_rdlock() 68 *dst = scns->data[0].shdr.e32->sh_info; in __elf_getphdrnum_rdlock() 72 if (likely (scns->cnt > 0 in __elf_getphdrnum_rdlock() 73 && elf->state.elf64.scns.data[0].shdr.e64 != NULL)) in __elf_getphdrnum_rdlock() 74 *dst = scns->data[0].shdr.e64->sh_info; in __elf_getphdrnum_rdlock()
|
D | elf_nextscn.c | 55 || (offsetof (Elf, state.elf32.scns) in elf_nextscn() 56 == offsetof (Elf, state.elf64.scns))) in elf_nextscn() 58 if (elf->state.elf32.scns.cnt > 1) in elf_nextscn() 59 result = &elf->state.elf32.scns.data[1]; in elf_nextscn() 63 if (elf->state.elf64.scns.cnt > 1) in elf_nextscn() 64 result = &elf->state.elf64.scns.data[1]; in elf_nextscn()
|
D | elf_clone.c | 58 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()
|
D | elf_begin.c | 289 assert (offsetof (struct Elf, state.elf32.scns) in file_read_elf() 290 == offsetof (struct Elf, state.elf64.scns)); in file_read_elf() 291 elf->state.elf32.scns.cnt = scncnt; in file_read_elf() 292 elf->state.elf32.scns.max = scnmax; in file_read_elf() 362 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf() 363 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf() 364 elf->state.elf32.scns.data[cnt].shdr.e32 = in file_read_elf() 369 elf->state.elf32.scns.data[cnt].rawdata_base = in file_read_elf() 370 elf->state.elf32.scns.data[cnt].data_base = in file_read_elf() 373 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf() [all …]
|
D | elf_end.c | 132 || (offsetof (struct Elf, state.elf32.scns) in elf_end() 133 == offsetof (struct Elf, state.elf64.scns)) in elf_end() 134 ? &elf->state.elf32.scns in elf_end() 135 : &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()
|
D | elf_getscn.c | 59 || (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()
|
D | elf_newscn.c | 58 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()
|
D | elf_getshdrnum.c | 61 || (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()
|
D | elf_getshdrstrndx.c | 93 if (unlikely (elf->state.elf32.scns.cnt == 0)) in elf_getshdrstrndx() 101 if (elf->state.elf32.scns.data[0].shdr.e32 != NULL) in elf_getshdrstrndx() 103 num = elf->state.elf32.scns.data[0].shdr.e32->sh_link; in elf_getshdrstrndx() 154 if (unlikely (elf->state.elf64.scns.cnt == 0)) in elf_getshdrstrndx() 162 if (elf->state.elf64.scns.data[0].shdr.e64 != NULL) in elf_getshdrstrndx() 164 num = elf->state.elf64.scns.data[0].shdr.e64->sh_link; in elf_getshdrstrndx()
|
D | elf32_updatefile.c | 92 sort_sections (Elf_Scn **scns, Elf_ScnList *list) in sort_sections() argument 94 Elf_Scn **scnp = scns; in sort_sections() 100 qsort (scns, scnp - scns, sizeof (*scns), compare_sections); in sort_sections() 231 Elf_ScnList *list = &elf->state.ELFW(elf,LIBELFBITS).scns; in __elfw2() 232 Elf_Scn **scns = (Elf_Scn **) malloc (shnum * sizeof (Elf_Scn *)); in __elfw2() local 233 if (unlikely (scns == NULL)) in __elfw2() 251 sort_sections (scns, list); in __elfw2() 257 Elf_Scn *scn = scns[cnt]; in __elfw2() 311 Elf_Scn *scn = scns[cnt]; in __elfw2() 421 Elf_Scn *scn = scns[cnt]; in __elfw2() [all …]
|
D | elf32_newphdr.c | 97 if (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0) in ElfW2() 98 elf->state.ELFW(elf,LIBELFBITS).scns.data[0] in ElfW2() 122 Elf_Scn *scn0 = &elf->state.ELFW(elf,LIBELFBITS).scns.data[0]; in ElfW2() 146 if (elf->state.ELFW(elf,LIBELFBITS).scns.cnt == 0) in ElfW2() 148 assert (elf->state.ELFW(elf,LIBELFBITS).scns.max > 0); in ElfW2() 149 elf->state.ELFW(elf,LIBELFBITS).scns.cnt = 1; in ElfW2()
|
D | elf_strptr.c | 74 || (offsetof (struct Elf, state.elf32.scns) in elf_strptr() 75 == offsetof (struct Elf, state.elf64.scns)) in elf_strptr() 76 ? &elf->state.elf32.scns : &elf->state.elf64.scns); in elf_strptr()
|
D | elf32_getshdr.c | 157 elf->state.ELFW(elf,LIBELFBITS).scns.data[shdr[cnt].sh_link].shndx_index in ElfW2() 162 if (elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index == 0) in ElfW2() 163 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index in ElfW2() 217 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shdr.ELFW(e,LIBELFBITS) in ElfW2()
|
D | elf32_updatenull.c | 186 assert (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0); in __elfw2() 192 Elf_Scn *scn0 = &elf->state.ELFW(elf,LIBELFBITS).scns.data[0]; in __elfw2() 199 list = &elf->state.ELFW(elf,LIBELFBITS).scns; in __elfw2()
|
D | elf32_offscn.c | 57 Elf_ScnList *runp = &elf->state.ELFW(elf,LIBELFBITS).scns; in elfw2()
|
D | libelfP.h | 357 Elf_ScnList scns; member 381 Elf_ScnList scns; member
|
D | ChangeLog | 159 * elf32_updatefile.c (updatefile): Always free shdr_data and scns 220 * elf32_updatefile.c (updatefile): Allocate shdr_data and scns
|