Home | History | Annotate | Download | only in src

Lines Matching refs:fname

123 /* Print symbols in file named FNAME.  */
124 static int process_file (const char *fname, bool more_than_one);
127 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
131 static int handle_elf (Elf *elf, const char *prefix, const char *fname,
135 #define INTERNAL_ERROR(fname) \
137 fname, __LINE__, PACKAGE_VERSION, __DATE__, elf_errmsg (-1))
357 process_file (const char *fname, bool more_than_one)
360 int fd = open (fname, O_RDONLY);
363 error (0, errno, gettext ("cannot open '%s'"), fname);
374 fname, NULL);
377 INTERNAL_ERROR (fname);
380 error (EXIT_FAILURE, errno, gettext ("while closing '%s'"), fname);
386 int result = handle_ar (fd, elf, NULL, fname, NULL);
389 INTERNAL_ERROR (fname);
392 error (EXIT_FAILURE, errno, gettext ("while closing '%s'"), fname);
399 INTERNAL_ERROR (fname);
402 error (0, 0, gettext ("%s: File format not recognized"), fname);
409 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
412 size_t fname_len = strlen (fname) + 1;
424 cp = stpcpy (cp, fname);
497 INTERNAL_ERROR (fname);
722 const char *prefix, const char *fname, const char *fullname,
768 printf (gettext ("\n\nSymbols from %s[%s]:\n\n"), prefix, fname);
849 const char *prefix, const char *fname, const char *fullname,
855 printf ("\n%s:\n", fname);
995 GElf_Shdr *shdr, const char *prefix, const char *fname,
1188 show_symbols_sysv (ebl, shdr->sh_link, prefix, fname,
1194 show_symbols_bsd (ebl->elf, shdr->sh_link, prefix, fname, fullname,
1226 handle_elf (Elf *elf, const char *prefix, const char *fname,
1231 size_t fname_len = strlen (fname) + 1;
1256 prefix ?: "", prefix ? "(" : "", fname, prefix ? ")" : "");
1264 cp = mempcpy (cp, fname, fname_len);
1305 show_symbols (ebl, ehdr, scn, xndxscn, shdr, prefix, fname,
1313 prefix ?: "", prefix ? ":" : "", fname);