Adjust the output section size to skip gap fills
[deliverable/binutils-gdb.git] / binutils / size.c
index 1035f2be2aa1a9a349b1263ef6866a61a436e927..dcfd9547b25cdd58db890f9fe0dc9a3ba9228d89 100644 (file)
@@ -133,6 +133,7 @@ main (int argc, char **argv)
 
   program_name = *argv;
   xmalloc_set_program_name (program_name);
+  bfd_set_error_program_name (program_name);
 
   expandargv (&argc, &argv);
 
@@ -365,7 +366,14 @@ display_archive (bfd *file)
       display_bfd (arfile);
 
       if (last_arfile != NULL)
-       bfd_close (last_arfile);
+       {
+         bfd_close (last_arfile);
+
+         /* PR 17512: file: a244edbc.  */
+         if (last_arfile == arfile)
+           return;
+       }
+
       last_arfile = arfile;
     }
 
This page took 0.027404 seconds and 4 git commands to generate.