home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / diffs / binutils.2 / binutils / objcopy.c next >
Encoding:
Text File  |  1993-11-28  |  1.3 KB  |  47 lines

  1. *** orig/binutils.2/binutils/objcopy.c    Sun Jun 20 16:07:30 1993
  2. --- src/binutils.2/binutils/objcopy.c    Sun Jun 20 16:19:04 1993
  3. ***************
  4. *** 361,367 ****
  5.       bfd_fatal(input_filename);
  6.   
  7.     if (bfd_check_format(ibfd, bfd_object)) {
  8. !     bfd * obfd = bfd_openw(output_filename, output_target);
  9.       if (obfd == NULL)
  10.         bfd_fatal(output_filename);
  11.   
  12. --- 361,372 ----
  13.       bfd_fatal(input_filename);
  14.   
  15.     if (bfd_check_format(ibfd, bfd_object)) {
  16. !     bfd *obfd;
  17. !     if (output_target == NULL)
  18. !       output_target = bfd_get_target(ibfd);
  19. !     obfd = bfd_openw(output_filename, output_target);
  20.       if (obfd == NULL)
  21.         bfd_fatal(output_filename);
  22.   
  23. ***************
  24. *** 376,382 ****
  25.         bfd_fatal(input_filename);
  26.     }
  27.     else if (bfd_check_format(ibfd, bfd_archive)) {
  28. !     bfd * obfd = bfd_openw(output_filename, output_target);
  29.       if (obfd == NULL)
  30.         bfd_fatal(output_filename);
  31.       copy_archive(ibfd, obfd);
  32. --- 381,392 ----
  33.         bfd_fatal(input_filename);
  34.     }
  35.     else if (bfd_check_format(ibfd, bfd_archive)) {
  36. !     bfd *obfd;
  37. !     if (output_target == NULL)
  38. !       output_target = bfd_get_target(ibfd);
  39. !     obfd = bfd_openw(output_filename, output_target);
  40.       if (obfd == NULL)
  41.         bfd_fatal(output_filename);
  42.       copy_archive(ibfd, obfd);
  43.