Lines Matching defs:fname
113 static int process_file (const char *fname);
117 const char *fname, mode_t mode, struct timespec tvp[2]);
120 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
129 #define INTERNAL_ERROR(fname) \
133 fname, __LINE__, PACKAGE_VERSION, elf_errmsg (-1)); \
447 Elf_Data *tdata, unsigned int ei_data, const char *fname,
520 INTERNAL_ERROR (fname);
533 INTERNAL_ERROR (fname);
557 INTERNAL_ERROR (fname);
568 const char *fname, size_t shstrndx)
602 INTERNAL_ERROR (fname);
613 INTERNAL_ERROR (fname);
621 INTERNAL_ERROR (fname);
628 INTERNAL_ERROR (fname);
638 INTERNAL_ERROR (fname);
641 INTERNAL_ERROR (fname);
658 INTERNAL_ERROR (fname);
669 INTERNAL_ERROR (fname);
694 INTERNAL_ERROR (fname);
704 tdata, ei_data, fname, is_rela,
719 INTERNAL_ERROR (fname);
727 INTERNAL_ERROR (fname);
732 INTERNAL_ERROR (fname);
737 INTERNAL_ERROR (fname);
744 process_file (const char *fname)
754 if (stat (fname, &pre_st) != 0)
756 error (0, errno, _("cannot stat input file '%s'"), fname);
767 int fd = open (fname, output_fname == NULL ? O_RDWR : O_RDONLY);
770 error (0, errno, _("while opening '%s'"), fname);
780 error (0, errno, _("cannot stat input file '%s'"), fname);
799 result = handle_elf (fd, elf, NULL, fname, st.st_mode & ACCESSPERMS,
809 fname);
817 result = handle_ar (fd, elf, NULL, fname,
821 fname);
827 error (0, 0, _("%s: File format not recognized"), fname);
833 INTERNAL_ERROR (fname);
843 GElf_Ehdr *ehdr, const char *fname, size_t shstrndx,
914 remove_debug_relocations (ebl, new_elf, ehdr, fname, shstrndx);
959 const char *fname)
965 INTERNAL_ERROR (fname);
972 INTERNAL_ERROR (fname);
981 handle_elf (int fd, Elf *elf, const char *prefix, const char *fname,
985 size_t fname_len = strlen (fname) + 1;
1032 memcpy (cp, fname, fname_len);
1087 INTERNAL_ERROR (fname);
1116 output_fname ?: fname, elf_errmsg (-1));
1126 output_fname ?: fname, elf_errmsg (-1));
1136 INTERNAL_ERROR (fname);
1142 if (handle_debug_relocs (elf, ebl, newelf, ehdr, fname, shstrndx,
1179 INTERNAL_ERROR (fname);
1229 INTERNAL_ERROR (fname);
1248 error (0, 0, _("illformed file '%s'"), fname);
1306 INTERNAL_ERROR (fname);
1475 INTERNAL_ERROR (fname);
1490 INTERNAL_ERROR (fname);
1509 INTERNAL_ERROR (fname);
1610 INTERNAL_ERROR (fname);
1648 INTERNAL_ERROR (fname);
1655 INTERNAL_ERROR (fname);
1661 INTERNAL_ERROR (fname);
1674 INTERNAL_ERROR (fname);
1684 INTERNAL_ERROR (fname);
1705 fname, elf_errmsg (-1));
1730 output_fname ?: fname);
1927 INTERNAL_ERROR (fname);
1933 INTERNAL_ERROR (fname);
1998 INTERNAL_ERROR (fname);
2011 INTERNAL_ERROR (fname);
2060 INTERNAL_ERROR (fname);
2086 INTERNAL_ERROR (fname);
2138 INTERNAL_ERROR (fname);
2166 INTERNAL_ERROR (fname);
2222 INTERNAL_ERROR (fname);
2233 INTERNAL_ERROR (fname);
2241 INTERNAL_ERROR (fname);
2252 INTERNAL_ERROR (fname);
2301 update_section_size (scn, hashd, debugelf, cnt, fname);
2362 update_section_size (scn, hashd, debugelf, cnt, fname);
2433 update_section_size (scn, verd, debugelf, cnt, fname);
2460 remove_debug_relocations (ebl, debugelf, ehdr, fname, shstrndx);
2514 INTERNAL_ERROR (fname);
2526 INTERNAL_ERROR (fname);
2545 output_fname ?: fname, elf_errmsg (-1));
2554 output_fname ?: fname, elf_errmsg (-1));
2563 fname, elf_errmsg (-1));
2578 output_fname ?: fname, elf_errmsg (-1));
2603 output_fname ?: fname);
2623 output_fname ?: fname);
2660 output_fname ?: fname, elf_errmsg (-1));
2685 output_fname ?: fname);
2718 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
2722 size_t fname_len = strlen (fname) + 1;
2732 memcpy (cp, fname, fname_len);
2752 INTERNAL_ERROR (fname);
2760 cannot set access and modification date of '%s'"), fname);
2766 error_exit (errno, _("while closing '%s'"), fname);