• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/elftoolchain/size/

Lines Matching refs:elfhdr

244 xlatetom(Elf *elf, GElf_Ehdr *elfhdr, void *_src, void *_dst,
251 src.d_version = elfhdr->e_version;
254 dst.d_version = elfhdr->e_version;
256 return (gelf_xlatetom(elf, &dst, &src, elfhdr->e_ident[EI_DATA]) !=
276 #define NEXT_NOTE(elfhdr, descsz, namesz, offset) do { \
277 if (elfhdr->e_ident[EI_CLASS] == ELFCLASS32) { \
292 handle_core_note(Elf *elf, GElf_Ehdr *elfhdr, GElf_Phdr *phdr,
304 if (elf == NULL || elfhdr == NULL || phdr == NULL)
318 if (xlatetom(elf, elfhdr, &nhdr->n_type, &nhdr_l.n_type,
320 xlatetom(elf, elfhdr, &nhdr->n_descsz, &nhdr_l.n_descsz,
322 xlatetom(elf, elfhdr, &nhdr->n_namesz, &nhdr_l.n_namesz,
337 if (elfhdr->e_ident[EI_OSABI] == ELFOSABI_FREEBSD &&
340 if (elfhdr->e_ident[EI_CLASS] == ELFCLASS32) {
360 (void)xlatetom(elf, elfhdr, &raw_size,
362 (void)xlatetom(elf, elfhdr, &pid, &pid,
469 NEXT_NOTE(elfhdr, nhdr_l.n_descsz, nhdr_l.n_namesz, offset);
480 handle_phdr(Elf *elf, GElf_Ehdr *elfhdr, GElf_Phdr *phdr,
487 if (elf == NULL || elfhdr == NULL || phdr == NULL)
531 handle_core(char const *name, Elf *elf, GElf_Ehdr *elfhdr)
538 if (name == NULL || elf == NULL || elfhdr == NULL)
540 if (elfhdr->e_shnum != 0 || elfhdr->e_type != ET_CORE)
549 for (i = 0; i < elfhdr->e_phnum; i++) {
552 handle_phdr(elf, elfhdr, &phdr, i, "note");
553 handle_core_note(elf, elfhdr, &phdr,
584 handle_phdr(elf, elfhdr, &phdr, i, seg_name);
617 GElf_Ehdr elfhdr;
636 (gelf_getehdr(elf, &elfhdr) == NULL)) {
644 if (elfhdr.e_shnum == 0 && elfhdr.e_type == ET_CORE) {
645 exit_code = handle_core(name, elf, &elfhdr);
663 sysv_calc(elf, &elfhdr, &shdr);
705 sysv_calc(Elf *elf, GElf_Ehdr *elfhdr, GElf_Shdr *shdr)
709 section_name = elf_strptr(elf, elfhdr->e_shstrndx,