From: Steve Chamberlain Date: Sun, 12 May 1991 07:34:24 +0000 (+0000) Subject: C X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23565c68dc4e6334d715c6a9ef660f7eb1763fa6;p=binutils-gdb.git C VS: ---------------------------------------------------------------------- --- diff --git a/binutils/copy.c b/binutils/copy.c index d9039ae38ed..9db6bf1143f 100644 --- a/binutils/copy.c +++ b/binutils/copy.c @@ -92,12 +92,14 @@ bfd *obfd; ibfd->filename, ibfd->xvec->name, obfd->filename, obfd->xvec->name); - if ((bfd_set_start_address(obfd, bfd_get_start_address(ibfd)) == false) || + if ((bfd_set_start_address(obfd, bfd_get_start_address(ibfd)) == false) + || (bfd_set_file_flags(obfd, (bfd_get_file_flags(ibfd) & - ~(HAS_LINENO | HAS_DEBUG | HAS_SYMS | D_PAGED | - HAS_LOCALS))) == false) || - bfd_set_start_address(obfd, bfd_get_start_address(ibfd)) == false) - bfd_fatal(bfd_get_filename(ibfd)); + (HAS_LINENO | HAS_DEBUG | + HAS_RELOC | HAS_SYMS | D_PAGED | + HAS_LOCALS))) == false)) { + bfd_fatal(bfd_get_filename(ibfd)); + } /* Copy architecture of input file to output file */ if (!bfd_set_arch_mach(obfd, bfd_get_architecture(ibfd),