From: Steve Chamberlain Date: Fri, 19 Jul 1991 15:17:55 +0000 (+0000) Subject: * newsos3.c, targets.c, coffcode.h: new patches from David X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f8d9c1c089eeeb1c21391e8e5f91084735c9592;p=binutils-gdb.git * newsos3.c, targets.c, coffcode.h: new patches from David Wood --- diff --git a/bfd/coffcode.h b/bfd/coffcode.h index f1d1928b7fe..d020ee8ef96 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -737,14 +737,12 @@ DEFUN(swap_scnhdr_out,(abfd, scnhdr_int, scnhdr_ext), PUTWORD(abfd, scnhdr_int->s_scnptr, (bfd_byte *) scnhdr_ext->s_scnptr); PUTWORD(abfd, scnhdr_int->s_relptr, (bfd_byte *) scnhdr_ext->s_relptr); PUTWORD(abfd, scnhdr_int->s_lnnoptr, (bfd_byte *) scnhdr_ext->s_lnnoptr); - + PUTWORD(abfd, scnhdr_int->s_flags, (bfd_byte *) scnhdr_ext->s_flags); #if defined(M88) PUTWORD(abfd, scnhdr_int->s_nlnno, (bfd_byte *) scnhdr_ext->s_nlnno); - PUTWORD(abfd, scnhdr_int->s_flags, (bfd_byte *) scnhdr_ext->s_flags); PUTWORD(abfd, scnhdr_int->s_nreloc, (bfd_byte *) scnhdr_ext->s_nreloc); #else PUTHALF(abfd, scnhdr_int->s_nlnno, (bfd_byte *) scnhdr_ext->s_nlnno); - PUTHALF(abfd, scnhdr_int->s_flags, (bfd_byte *) scnhdr_ext->s_flags); PUTHALF(abfd, scnhdr_int->s_nreloc, (bfd_byte *) scnhdr_ext->s_nreloc); #endif @@ -2194,7 +2192,7 @@ DEFUN(coff_write_object_contents,(abfd), unsigned short flags = 0; coff_set_flags(abfd, &magic, &flags); internal_f.f_magic = magic; - internal_f.f_flags = flags; + internal_f.f_flags |= flags; /* ...and the "opt"hdr... */ #ifdef A29K