}
static void
-display_file (char *filename, char *target, bool last_file)
+display_file (char *filename, char *target)
{
bfd *file;
display_any_bfd (file, 0);
- /* This is an optimization to improve the speed of objdump, especially when
- dumping a file with lots of associated debug informatiom. Calling
- bfd_close on such a file can take a non-trivial amount of time as there
- are lots of lists to walk and buffers to free. This is only really
- necessary however if we are about to load another file and we need the
- memory back. Otherwise, if we are about to exit, then we can save (a lot
- of) time by only doing a quick close, and allowing the OS to reclaim the
- memory for us. */
- if (! last_file)
- bfd_close (file);
- else
- bfd_close_all_done (file);
+ bfd_close (file);
}
\f
int
else
{
if (optind == argc)
- display_file ("a.out", target, true);
+ display_file ("a.out", target);
else
for (; optind < argc;)
{
- display_file (argv[optind], target, optind == argc - 1);
+ display_file (argv[optind], target);
optind++;
}
}