home *** CD-ROM | disk | FTP | other *** search
- *** orig/binutils.2/binutils/objcopy.c Sun Jun 20 16:07:30 1993
- --- src/binutils.2/binutils/objcopy.c Sun Jun 20 16:19:04 1993
- ***************
- *** 361,367 ****
- bfd_fatal(input_filename);
-
- if (bfd_check_format(ibfd, bfd_object)) {
- ! bfd * obfd = bfd_openw(output_filename, output_target);
- if (obfd == NULL)
- bfd_fatal(output_filename);
-
- --- 361,372 ----
- bfd_fatal(input_filename);
-
- if (bfd_check_format(ibfd, bfd_object)) {
- ! bfd *obfd;
- !
- ! if (output_target == NULL)
- ! output_target = bfd_get_target(ibfd);
- !
- ! obfd = bfd_openw(output_filename, output_target);
- if (obfd == NULL)
- bfd_fatal(output_filename);
-
- ***************
- *** 376,382 ****
- bfd_fatal(input_filename);
- }
- else if (bfd_check_format(ibfd, bfd_archive)) {
- ! bfd * obfd = bfd_openw(output_filename, output_target);
- if (obfd == NULL)
- bfd_fatal(output_filename);
- copy_archive(ibfd, obfd);
- --- 381,392 ----
- bfd_fatal(input_filename);
- }
- else if (bfd_check_format(ibfd, bfd_archive)) {
- ! bfd *obfd;
- !
- ! if (output_target == NULL)
- ! output_target = bfd_get_target(ibfd);
- !
- ! obfd = bfd_openw(output_filename, output_target);
- if (obfd == NULL)
- bfd_fatal(output_filename);
- copy_archive(ibfd, obfd);
-