]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
authorDavid MacKenzie <djm@cygnus>
Thu, 17 Feb 1994 18:10:18 +0000 (18:10 +0000)
committerDavid MacKenzie <djm@cygnus>
Thu, 17 Feb 1994 18:10:18 +0000 (18:10 +0000)
size.c: Use bfd_get_error and bfd_set_error and new error names.

binutils/ChangeLog
binutils/nlmconv.c

index 9f445b938d51e048d37cdcd9abb0648179d954c8..dc1d5e7f444b533a695677aeb59e5a3bb347bbd4 100644 (file)
@@ -1,3 +1,8 @@
+Thu Feb 17 09:28:23 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c, 
+       size.c: Use bfd_get_error and bfd_set_error and new error names.
+
 Fri Feb 11 15:54:51 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
 
        * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
index 14e444f47ddebac879cd9783ca062253b356a507..5293c0808f44d69e44ee12daccc637c56847e895 100644 (file)
@@ -174,6 +174,7 @@ main (argc, argv)
   char **matching;
 
   program_name = argv[0];
+  xmalloc_set_program_name (program_name);
 
   bfd_init ();
 
@@ -300,7 +301,7 @@ main (argc, argv)
   if (! bfd_check_format_matches (inbfd, bfd_object, &matching))
     {
       bfd_nonfatal (input_file);
-      if (bfd_error == file_ambiguously_recognized)
+      if (bfd_get_error () == bfd_error_file_ambiguously_recognized)
        {
          list_matching_formats (matching);
          free (matching);
@@ -710,7 +711,7 @@ main (argc, argv)
          || ! bfd_check_format (sharedbfd, bfd_object))
        {
          fprintf (stderr, "%s:%s: %s\n", program_name, sharelib_file,
-                  bfd_errmsg (bfd_error));
+                  bfd_errmsg (bfd_get_error ()));
          sharelib_file = NULL;
        }
       else