PR24499, ignore --add-gnu-debuglink for archives
[deliverable/binutils-gdb.git] / binutils / objcopy.c
index 99cc7beca8f7241bddee8c0242670b4b895b0461..f682fbeef479390395693672665eb1bf29ee81ab 100644 (file)
@@ -3752,6 +3752,14 @@ copy_file (const char *input_filename, const char *output_filename,
          status = 1;
          return;
        }
+
+      if (gnu_debuglink_filename != NULL)
+       {
+         non_fatal (_("--add-gnu-debuglink ignored for archive %s"),
+                    bfd_get_filename (ibfd));
+         gnu_debuglink_filename = NULL;
+       }
+
       /* This is a no-op on non-Coff targets.  */
       set_long_section_mode (obfd, ibfd, long_section_names);
 
This page took 0.027711 seconds and 4 git commands to generate.