PR25629, objcopy : SIGSEGV in filter_symbols
[deliverable/binutils-gdb.git] / binutils / nm.c
index 99d2027250fc6cfa3e7fbbd4c96c0a34e2e7cf76..5b386592a615c4b9decb8647db06fa7cb01e641b 100644 (file)
@@ -1171,6 +1171,8 @@ display_rel_file (bfd *abfd, bfd *archive_bfd)
          *symp = 0;
          symcount += synth_count;
        }
+      if (!dynamic && dyn_syms != NULL)
+       free (dyn_syms);
     }
 
   /* lto_slim_object is set to false when a bfd is loaded with a compiler
@@ -1699,7 +1701,7 @@ main (int argc, char **argv)
   xmalloc_set_program_name (program_name);
   bfd_set_error_program_name (program_name);
 #if BFD_SUPPORTS_PLUGINS
-  bfd_plugin_set_program_name (program_name);
+  bfd_plugin_set_program_name (program_name, 1);
 #endif
 
   START_PROGRESS (program_name, 0);
This page took 0.025069 seconds and 4 git commands to generate.