Home
last modified time | relevance | path

Searched refs:shdr (Results 1 - 25 of 105) sorted by relevance

12345

/third_party/elfutils/tests/
H A Dupdate4.c44 Elf32_Shdr *shdr; in main() local
123 shdr = elf32_getshdr (scn); in main()
124 if (shdr == NULL) in main()
132 shdr->sh_type = SHT_PROGBITS; in main()
133 shdr->sh_flags = SHF_ALLOC | SHF_EXECINSTR; in main()
134 shdr->sh_addr = 0; in main()
135 shdr->sh_link = 0; in main()
136 shdr->sh_info = 0; in main()
137 shdr->sh_entsize = 1; in main()
159 shdr in main()
[all...]
H A Daddsections.c134 GElf_Shdr *shdr = gelf_getshdr (shstrtab_scn, &shdr_mem); in add_sections() local
135 if (shdr == NULL) in add_sections()
142 size_t shstrtab_idx = shdr->sh_name; in add_sections()
143 shdr->sh_name = old_shstrtab_idx; in add_sections()
145 if (gelf_update_shdr (shstrtab_scn, shdr) == 0) in add_sections()
196 shdr = gelf_getshdr (scn, &shdr_mem); in add_sections()
197 if (shdr == NULL) in add_sections()
204 shdr->sh_type = SHT_PROGBITS; in add_sections()
205 shdr->sh_flags = 0; in add_sections()
206 shdr in add_sections()
[all...]
H A Dfillfile.c80 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in create_strtab() local
81 if (shdr == NULL) in create_strtab()
88 shdr->sh_type = SHT_STRTAB; in create_strtab()
89 shdr->sh_flags = 0; in create_strtab()
90 shdr->sh_addr = 0; in create_strtab()
91 shdr->sh_link = SHN_UNDEF; in create_strtab()
92 shdr->sh_info = SHN_UNDEF; in create_strtab()
93 shdr->sh_addralign = 1; in create_strtab()
94 shdr->sh_entsize = 0; in create_strtab()
95 shdr in create_strtab()
141 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); add_data_section() local
302 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); check_elf() local
374 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); check_elf() local
[all...]
H A Dasm-tst2.c175 GElf_Shdr *shdr; in main() local
185 shdr = gelf_getshdr (scn, &shdr_mem); in main()
186 if (shdr == NULL) in main()
194 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
198 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
203 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS)) in main()
209 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
210 || (cnt == 2 && shdr->sh_flags != 0)) in main()
216 if (shdr->sh_addr != 0) in main()
222 if ((cnt == 1 && shdr in main()
[all...]
H A Dasm-tst1.c159 GElf_Shdr *shdr; in main() local
169 shdr = gelf_getshdr (scn, &shdr_mem); in main()
170 if (shdr == NULL) in main()
178 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
182 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
187 if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS)) in main()
193 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_EXECINSTR)) in main()
194 || (cnt == 2 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
195 || (cnt == 3 && shdr->sh_flags != 0)) in main()
201 if (shdr in main()
[all...]
H A Dsectiondump.c82 GElf_Shdr *shdr; in handle_section() local
88 shdr = gelf_getshdr (scn, &shdr_mem); in handle_section()
89 if (ehdr == NULL || shdr == NULL) in handle_section()
103 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in handle_section()
104 shdr->sh_type, in handle_section()
105 shdr->sh_flags, in handle_section()
106 shdr->sh_addr, in handle_section()
107 shdr->sh_offset, in handle_section()
108 shdr->sh_size, in handle_section()
109 shdr in handle_section()
[all...]
H A Dasm-tst9.c209 GElf_Shdr *shdr; in main() local
219 shdr = gelf_getshdr (escn, &shdr_mem); in main()
220 if (shdr == NULL) in main()
228 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
232 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
237 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS)) in main()
243 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
244 || (cnt == 2 && shdr->sh_flags != 0)) in main()
250 if (shdr->sh_addr != 0) in main()
256 if ((cnt == 1 && shdr in main()
[all...]
H A Dalldts.c132 Elf32_Shdr *shdr = elf32_getshdr (scn); in main() local
133 if (shdr == NULL) in main()
143 const Elf32_Off *const dynscn_offset = &shdr->sh_offset; in main()
144 shdr->sh_type = SHT_DYNAMIC; in main()
145 shdr->sh_flags = SHF_ALLOC | SHF_WRITE; in main()
146 shdr->sh_link = SHN_UNDEF; in main()
147 shdr->sh_info = SHN_UNDEF; in main()
149 shdr->sh_addr = 0x1a0; in main()
189 shdr = elf32_getshdr (scn); in main()
190 if (shdr in main()
[all...]
/third_party/elfutils/libasm/
H A Dasm_end.c75 GElf_Shdr *shdr; in binary_end() local
141 shdr = gelf_getshdr (strscn, &shdr_mem); in binary_end()
142 if (strtabdata == NULL || shdr == NULL) in binary_end()
151 shdr->sh_type = SHT_STRTAB; in binary_end()
152 assert (shdr->sh_entsize == 0); in binary_end()
154 (void) gelf_update_shdr (strscn, shdr); in binary_end()
159 shdr = gelf_getshdr (symscn, &shdr_mem); in binary_end()
160 if (data == NULL || shdr == NULL) in binary_end()
224 shdr = gelf_getshdr (xndxscn, &shdr_mem); in binary_end()
225 if (xndxdata == NULL || shdr in binary_end()
[all...]
/third_party/elfutils/src/
H A Dunstrip.c365 section_can_shrink (const GElf_Shdr *shdr) in section_can_shrink()
367 switch (shdr->sh_type) in section_can_shrink()
396 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem); in symtab_count_leading_section_symbols()
397 ELF_CHECK (shdr != NULL, _("cannot get section header: %s")); in symtab_count_leading_section_symbols()
405 sym->st_value = shdr->sh_addr; in symtab_count_leading_section_symbols()
450 adjust_relocs (Elf_Scn *outscn, Elf_Scn *inscn, const GElf_Shdr *shdr, in adjust_relocs()
455 switch (shdr->sh_type) in adjust_relocs()
458 if (shdr->sh_entsize == 0) in adjust_relocs()
461 for (size_t i = 0; i < shdr->sh_size / shdr in adjust_relocs()
364 section_can_shrink(const GElf_Shdr *shdr) section_can_shrink() argument
395 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem); symtab_count_leading_section_symbols() local
449 adjust_relocs(Elf_Scn *outscn, Elf_Scn *inscn, const GElf_Shdr *shdr, size_t map[], size_t map_size, const GElf_Shdr *symshdr) adjust_relocs() argument
609 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); adjust_all_relocs() local
630 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); add_new_section_symbols() local
732 GElf_Shdr shdr; global() member
885 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx), collect_symbols() local
980 sections_match(const struct section *sections, size_t i, const GElf_Shdr *shdr, const char *name) sections_match() argument
993 find_alloc_section(const GElf_Shdr *shdr, GElf_Addr bias, const char *name, struct section sections[], size_t nalloc) find_alloc_section() argument
1022 get_section_name(size_t ndx, const GElf_Shdr *shdr, const Elf_Data *shstrtab) get_section_name() argument
1033 get_group_sig(Elf *elf, GElf_Shdr *shdr) get_group_sig() argument
1170 void *shdr = xmalloc (shdr_bytes); find_alloc_sections_prelink() local
1221 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); find_alloc_sections_prelink() local
1348 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); new_shstrtab() local
1372 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); new_shstrtab() local
1428 GElf_Shdr *shdr = gelf_getshdr (scn, &sections[i].shdr); copy_elided_sections() local
1469 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); copy_elided_sections() local
1661 GElf_Shdr *shdr = gelf_getshdr (sec->outscn, &shdr_mem); copy_elided_sections() local
1812 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); copy_elided_sections() local
2054 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); copy_elided_sections() local
[all...]
H A Delfcompress.c229 /* Reload shdr, it has changed. */ in compress_section()
231 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in compress_section() local
232 if (shdr == NULL) in compress_section()
234 error (0, 0, "Couldn't get shdr for section [%zd]", ndx); in compress_section()
237 float new = shdr->sh_size; in compress_section()
240 orig_size, shdr->sh_size, (new / orig) * 100); in compress_section()
433 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
434 if (shdr == NULL) in process_file()
436 error (0, 0, "Couldn't get shdr for section %zd", ndx); in process_file()
440 const char *sname = elf_strptr (elf, shdrstrndx, shdr in process_file()
661 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); process_file() local
840 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); process_file() local
1008 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); process_file() local
1112 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); process_file() local
[all...]
H A Dstrip.c376 GElf_Shdr *shdr = gelf_getshdr (sec, &mem); in secndx_name() local
377 if (shdr == NULL || elf_getshdrstrndx (elf, &shstrndx) < 0) in secndx_name()
379 return elf_strptr (elf, shstrndx, shdr->sh_name) ?: "???"; in secndx_name()
388 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); in get_xndxdata() local
389 if (shdr != NULL && shdr->sh_type == SHT_SYMTAB) in get_xndxdata()
577 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in remove_debug_relocations() local
578 if (shdr != NULL in remove_debug_relocations()
579 && (shdr->sh_type == SHT_REL || shdr in remove_debug_relocations()
860 GElf_Shdr shdr; handle_debug_relocs() local
922 GElf_Shdr shdr; handle_debug_relocs() local
962 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); update_section_size() local
998 GElf_Shdr shdr; handle_elf() member
2441 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); handle_elf() local
[all...]
H A Delflint.c95 GElf_Shdr *shdr, int idx);
302 GElf_Shdr *shdr; in section_name() local
308 shdr = gelf_getshdr (elf_getscn (ebl->elf, idx), &shdr_mem); in section_name()
309 if (shdr == NULL) in section_name()
312 ret = elf_strptr (ebl->elf, shstrndx, shdr->sh_name); in section_name()
432 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); in check_elf_header() local
433 if (shdr != NULL) in check_elf_header()
436 if (shdr->sh_size == 0) in check_elf_header()
440 shnum = shdr->sh_size; in check_elf_header()
449 GElf_Shdr *shdr in check_elf_header() local
481 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); check_elf_header() local
564 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); check_scn_group() local
602 check_symtab(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) check_symtab() argument
1075 is_rel_dyn(Ebl *ebl, const GElf_Ehdr *ehdr, int idx, const GElf_Shdr *shdr, bool is_rela) is_rel_dyn() argument
1249 check_reloc_shdr(Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr, int idx, int reltype, GElf_Shdr **destshdrp, GElf_Shdr *destshdr_memp, struct loaded_segment **loadedp) check_reloc_shdr() argument
1492 check_rela(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) check_rela() argument
1543 check_rel(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) check_rel() argument
1598 check_dynamic(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) check_dynamic() argument
1929 check_symtab_shndx(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) check_symtab_shndx() argument
2023 check_sysv_hash(Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx, GElf_Shdr *symshdr) check_sysv_hash() argument
2077 check_sysv_hash64(Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx, GElf_Shdr *symshdr) check_sysv_hash64() argument
2134 check_gnu_hash(Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx, GElf_Shdr *symshdr) check_gnu_hash() argument
2303 check_hash(int tag, Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) check_hash() argument
2601 check_null(Ebl *ebl, GElf_Shdr *shdr, int idx) check_null() argument
2621 check_group(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) check_group() argument
2836 GElf_Shdr *shdr = NULL; has_copy_reloc() local
2887 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, shndx), &shdr_mem); in_nobits_scn() local
2934 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); check_versym() local
3063 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); unknown_dependency_p() local
3087 check_verneed(Ebl *ebl, GElf_Shdr *shdr, int idx) check_verneed() argument
3234 check_verdef(Ebl *ebl, GElf_Shdr *shdr, int idx) check_verdef() argument
3443 check_attributes(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) check_attributes() argument
3713 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); check_sections() local
4456 check_note_section(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) check_note_section() argument
4560 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); check_program_header() local
4663 GElf_Shdr *shdr = NULL; check_program_header() local
[all...]
H A Dfindtextrel.c249 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
251 if (shdr == NULL) in process_file()
259 switch (shdr->sh_type) in process_file()
267 size_t entries = (shdr->sh_entsize == 0 in process_file()
268 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file()
379 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
381 if (shdr == NULL) in process_file()
390 if ((shdr->sh_type == SHT_REL || shdr in process_file()
517 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); check_rel() local
[all...]
H A Dobjdump.c344 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata, in show_relocs_x() argument
375 if (shdr == NULL || destshdr == NULL) in show_relocs_x()
400 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, in show_relocs_rel() argument
405 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rel()
414 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rel()
421 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, in show_relocs_rela() argument
426 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rela()
435 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rela()
442 section_match (Elf *elf, uint32_t scnndx, GElf_Shdr *shdr, size_t shstrndx) in section_match() argument
448 const char *name = elf_strptr (elf, shstrndx, shdr in section_match()
480 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); show_relocs() local
555 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); show_full_content() local
692 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); show_disasm() local
[all...]
H A Dsize.c403 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in show_sysv() local
405 if (shdr == NULL) in show_sysv()
409 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in show_sysv()
410 if (name != NULL && (shdr->sh_flags & SHF_ALLOC) != 0) in show_sysv()
427 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in show_sysv() local
429 if (shdr == NULL) in show_sysv()
433 if ((shdr->sh_flags & SHF_ALLOC) != 0) in show_sysv()
440 maxlen, elf_strptr (elf, shstrndx, shdr->sh_name), in show_sysv()
441 digits - 2, shdr->sh_size, in show_sysv()
442 digits, shdr in show_sysv()
476 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); show_sysv_one_line() local
528 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); show_bsd() local
[all...]
/third_party/elfutils/libelf/
H A Delf32_getshdr.c56 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
68 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = in ElfW2()
70 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL) in ElfW2()
111 memcpy (shdr, file_shdr, size); in ElfW2()
138 CONVERT_TO (shdr[cnt].sh_name, notcvt[cnt].sh_name); in ElfW2()
139 CONVERT_TO (shdr[cnt].sh_type, notcvt[cnt].sh_type); in ElfW2()
140 CONVERT_TO (shdr[cnt].sh_flags, notcvt[cnt].sh_flags); in ElfW2()
141 CONVERT_TO (shdr[cnt].sh_addr, notcvt[cnt].sh_addr); in ElfW2()
142 CONVERT_TO (shdr[cn in ElfW2()
[all...]
H A Delf_compress_gnu.c64 Elf32_Shdr *shdr = elf32_getshdr (scn); in elf_compress_gnu() local
65 if (shdr == NULL) in elf_compress_gnu()
68 sh_flags = shdr->sh_flags; in elf_compress_gnu()
69 sh_type = shdr->sh_type; in elf_compress_gnu()
70 sh_addralign = shdr->sh_addralign; in elf_compress_gnu()
74 Elf64_Shdr *shdr = elf64_getshdr (scn); in elf_compress_gnu() local
75 if (shdr == NULL) in elf_compress_gnu()
78 sh_flags = shdr->sh_flags; in elf_compress_gnu()
79 sh_type = shdr->sh_type; in elf_compress_gnu()
80 sh_addralign = shdr in elf_compress_gnu()
125 Elf32_Shdr *shdr = elf32_getshdr (scn); elf_compress_gnu() local
130 Elf64_Shdr *shdr = elf64_getshdr (scn); elf_compress_gnu() local
190 Elf32_Shdr *shdr = elf32_getshdr (scn); elf_compress_gnu() local
195 Elf64_Shdr *shdr = elf64_getshdr (scn); elf_compress_gnu() local
[all...]
H A Delf32_updatenull.c186 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, in __elfw2()
201 if (scn1 != NULL && scn1->shdr.ELFW(e,LIBELFBITS) == NULL) in __elfw2()
209 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2()
212 assert (shdr != NULL); in __elfw2()
213 ElfW2(LIBELFBITS,SizeWord) sh_entsize = shdr->sh_entsize; in __elfw2()
214 ElfW2(LIBELFBITS,SizeWord) sh_align = shdr->sh_addralign ?: 1; in __elfw2()
222 switch (shdr->sh_type) in __elfw2()
265 update_if_changed (shdr->sh_entsize, sh_entsize, in __elfw2()
272 if ((shdr in __elfw2()
[all...]
H A Delf_compress.c365 Elf32_Shdr *shdr = elf32_getshdr (scn); in elf_compress() local
366 if (shdr == NULL) in elf_compress()
369 sh_flags = shdr->sh_flags; in elf_compress()
370 sh_type = shdr->sh_type; in elf_compress()
371 sh_addralign = shdr->sh_addralign; in elf_compress()
375 Elf64_Shdr *shdr = elf64_getshdr (scn); in elf_compress() local
376 if (shdr == NULL) in elf_compress()
379 sh_flags = shdr->sh_flags; in elf_compress()
380 sh_type = shdr->sh_type; in elf_compress()
381 sh_addralign = shdr in elf_compress()
457 Elf32_Shdr *shdr = elf32_getshdr (scn); elf_compress() local
464 Elf64_Shdr *shdr = elf64_getshdr (scn); elf_compress() local
508 Elf32_Shdr *shdr = elf32_getshdr (scn); elf_compress() local
515 Elf64_Shdr *shdr = elf64_getshdr (scn); elf_compress() local
[all...]
H A Dgelf_getshdr.c59 Elf32_Shdr *shdr in gelf_getshdr() local
60 = scn->shdr.e32 ?: __elf32_getshdr_rdlock (scn); in gelf_getshdr()
62 if (shdr == NULL) in gelf_getshdr()
69 dst->name = shdr->name in gelf_getshdr()
85 Elf64_Shdr *shdr in gelf_getshdr() local
86 = scn->shdr.e64 ?: __elf64_getshdr_rdlock (scn); in gelf_getshdr()
88 if (shdr == NULL) in gelf_getshdr()
95 result = memcpy (dst, shdr, sizeof (GElf_Shdr)); in gelf_getshdr()
/third_party/libunwind/libunwind/src/
H A Delfxx.c68 Debug (1, "string shdr table outside of image? (%lu > %lu)\n", in string_table()
96 Elf_W (Shdr) *shdr; in lookup_symbol()
104 shdr = elf_w (section_table) (ei); in lookup_symbol()
105 if (!shdr) in lookup_symbol()
110 switch (shdr->sh_type) in lookup_symbol()
114 symtab = (Elf_W (Sym) *) ((char *) ei->image + shdr->sh_offset); in lookup_symbol()
115 symtab_end = (Elf_W (Sym) *) ((char *) symtab + shdr->sh_size); in lookup_symbol()
116 syment_size = shdr->sh_entsize; in lookup_symbol()
118 strtab = elf_w (string_table) (ei, shdr->sh_link); in lookup_symbol()
123 (long) shdr in lookup_symbol()
[all...]
/third_party/libbpf/src/
H A Dlinker.c42 Elf64_Shdr *shdr; member
111 Elf64_Shdr *shdr; member
286 symtab->shdr->sh_size += sizeof(*sym); in add_new_sym()
351 sec->shdr = elf64_getshdr(sec->scn); in init_output_elf()
352 if (!sec->shdr) in init_output_elf()
369 sec->shdr->sh_name = str_off; in init_output_elf()
370 sec->shdr->sh_type = SHT_STRTAB; in init_output_elf()
371 sec->shdr->sh_flags = SHF_STRINGS; in init_output_elf()
372 sec->shdr->sh_offset = 0; in init_output_elf()
373 sec->shdr in init_output_elf()
481 Elf64_Shdr *shdr = sec->shdr; is_ignored_sec() local
553 Elf64_Shdr *shdr; linker_load_obj_file() local
982 Elf64_Shdr *shdr; init_sec() local
2622 Elf64_Shdr *shdr; emit_elf_data_sec() local
[all...]
/third_party/elfutils/libdwfl/
H A Drelocate.c131 GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem); in relocate_getsym() local
132 if (shdr != NULL) in relocate_getsym()
135 if ((shdr->sh_type == SHT_SYMTAB in relocate_getsym()
136 || shdr->sh_type == SHT_SYMTAB_SHNDX) in relocate_getsym()
137 && (shdr->sh_flags & SHF_COMPRESSED) != 0) in relocate_getsym()
141 switch (shdr->sh_type) in relocate_getsym()
148 cache->strtabndx = shdr->sh_link; in relocate_getsym()
228 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in resolve_symbol() local
229 if (shdr == NULL) in resolve_symbol()
237 shdr in resolve_symbol()
502 relocate_section(Dwfl_Module *mod, Elf *relocated, const GElf_Ehdr *ehdr, size_t shstrndx, struct reloc_symtab_cache *reloc_symtab, Elf_Scn *scn, GElf_Shdr *shdr, Elf_Scn *tscn, bool debugscn, bool partial) relocate_section() argument
774 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); __libdwfl_relocate() local
[all...]
H A Ddwfl_module_getdwarf.c284 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in find_prelink_address_sync() local
285 if (unlikely (shdr == NULL)) in find_prelink_address_sync()
287 if (shdr->sh_type == SHT_PROGBITS in find_prelink_address_sync()
288 && !(shdr->sh_flags & SHF_ALLOC) in find_prelink_address_sync()
289 && shdr->sh_name != 0) in find_prelink_address_sync()
292 shdr->sh_name); in find_prelink_address_sync()
611 GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem); in load_symtab() local
612 if (shdr != NULL) in load_symtab()
613 switch (shdr->sh_type) in load_symtab()
616 if (shdr in load_symtab()
951 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); find_aux_sym() local
1004 GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem); find_aux_sym() local
1152 GElf_Shdr *shdr = gelf_getshdr (symstrscn, &shdr_mem); find_symtab() local
[all...]

Completed in 18 milliseconds

12345