* Makefile.in (Makefile): Added config.status to dependency list.
[deliverable/binutils-gdb.git] / binutils / objcopy.c
index 86232ad9555dcd0725277b5f0af80a69979a9e6d..ccd3e13e5ce1a6b2d43580d56fccf56d69d2c8f4 100644 (file)
@@ -232,6 +232,7 @@ Usage: %s [-vVSgxX] [-I bfdname] [-O bfdname] [-F bfdname] [-b byte]\n\
        [--strip-symbol symbol] [-N symbol] [--verbose]\n\
        [--version] [--help]\n\
        in-file [out-file]\n");
+  list_supported_targets (program_name, stream);
   exit (exit_status);
 }
 
@@ -247,6 +248,7 @@ Usage: %s [-vVsSgxX] [-I bfdname] [-O bfdname] [-F bfdname] [-R section]\n\
        [--strip-symbol symbol] [-N symbol]\n\
        [--remove-section=section] [--verbose] [--version] [--help] file...\n",
           program_name);
+  list_supported_targets (program_name, stream);
   exit (exit_status);
 }
 
@@ -417,6 +419,12 @@ is_strip_section (abfd, sec)
 {
   struct section_list *p;
 
+  if ((bfd_get_section_flags (abfd, sec) & SEC_DEBUGGING) != 0
+      && (strip_symbols == strip_debug
+         || strip_symbols == strip_all
+         || discard_locals == locals_all))
+    return true;
+
   if (! sections_removed)
     return false;
   p = find_section_list (bfd_get_section_name (abfd, sec), false);
This page took 0.023429 seconds and 4 git commands to generate.