Lines Matching +defs:buffer +defs:file +defs:name

1 /* size.c -- report size of various sections of an executable file.
4 This file is part of GNU Binutils.
84 static void print_sizes (bfd * file);
90 fprintf (stream, _("Usage: %s [option(s)] [file(s)]\n"), program_name);
92 fprintf (stream, _(" If no input file(s) are specified, a.out is assumed\n"));
98 --target=<bfdname> Set the binary file format\n\
99 @<file> Read options from <file>\n\
242 name of the section, and the total of the section sizes. */
323 /* Display stats on file or archive member ABFD. */
355 fputs (" (core file", stdout);
377 display_archive (bfd *file)
386 arfile = bfd_openr_next_archived_file (file, arfile);
391 bfd_nonfatal (bfd_get_filename (file));
403 /* PR 17512: file: a244edbc. */
418 bfd *file;
426 file = bfd_openr (filename, target);
427 if (file == NULL)
434 if (bfd_check_format (file, bfd_archive))
435 display_archive (file);
437 display_bfd (file);
439 if (!bfd_close (file))
451 char buffer[40];
453 sprintf (buffer,
458 return strlen (buffer);
464 char buffer[40];
466 sprintf (buffer,
471 printf ("%*s", width, buffer);
561 sysv_internal_sizer (bfd *file ATTRIBUTE_UNUSED, sec_ptr sec,
587 sysv_one_line (const char *name, bfd_size_type size, bfd_vma vma)
589 printf ("%-*s ", svi_namelen, name);
597 sysv_internal_printer (bfd *file ATTRIBUTE_UNUSED, sec_ptr sec,
619 print_sysv_format (bfd *file)
625 bfd_map_over_sections (file, sysv_internal_sizer, NULL);
643 printf ("%s ", bfd_get_filename (file));
645 if (file->my_archive)
646 printf (" (ex %s)", bfd_get_filename (file->my_archive));
651 bfd_map_over_sections (file, sysv_internal_printer, NULL);
664 print_sizes (bfd *file)
667 calculate_common_size (file);
669 print_sysv_format (file);
671 print_berkeley_or_gnu_format (file);