Lines Matching refs:fname
92 /* Print symbols in file named FNAME. */
93 static int process_file (const char *fname, bool more_than_one);
96 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
100 static int handle_elf (Elf *elf, const char *prefix, const char *fname,
104 #define INTERNAL_ERROR(fname) \
106 fname, __LINE__, PACKAGE_VERSION, __DATE__, elf_errmsg (-1))
251 process_file (const char *fname, bool more_than_one)
254 int fd = open (fname, O_RDONLY);
257 error (0, errno, gettext ("cannot open %s"), fname);
268 fname, NULL);
271 INTERNAL_ERROR (fname);
274 error (EXIT_FAILURE, errno, gettext ("while close `%s'"), fname);
280 int result = handle_ar (fd, elf, NULL, fname, NULL);
283 INTERNAL_ERROR (fname);
286 error (EXIT_FAILURE, errno, gettext ("while close `%s'"), fname);
293 INTERNAL_ERROR (fname);
296 error (0, 0, gettext ("%s: File format not recognized"), fname);
303 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
306 size_t fname_len = strlen (fname) + 1;
318 cp = stpcpy (cp, fname);
353 INTERNAL_ERROR (fname);
541 show_relocs (Ebl *ebl, const char *fname, uint32_t shstrndx)
552 INTERNAL_ERROR (fname);
614 show_full_content (Ebl *ebl, const char *fname, uint32_t shstrndx)
623 INTERNAL_ERROR (fname);
726 show_disasm (Ebl *ebl, const char *fname, uint32_t shstrndx)
739 INTERNAL_ERROR (fname);
771 handle_elf (Elf *elf, const char *prefix, const char *fname,
779 fname, gelf_getclass (elf) == ELFCLASS32 ? 32 : 64,
785 size_t fname_len = strlen (fname) + 1;
790 cp = mempcpy (cp, fname, fname_len);