From 38d6ea5b02e4a60fd3aa3b59ac1b2b10c6ee7fa8 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Tue, 22 Apr 2008 00:12:23 +0000 Subject: [PATCH] * archive.c (_bfd_write_archive_contents): Fix incorrect use of ARFMAG. --- bfd/ChangeLog | 5 +++++ bfd/archive.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7171a0c4f29..1fa63cdc025 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-04-21 Cary Coutant + + * archive.c (_bfd_write_archive_contents): Fix incorrect use of + ARFMAG. + 2008-04-21 Nathan Sidwell * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't diff --git a/bfd/archive.c b/bfd/archive.c index 9861ed9ad45..0ca3db1542e 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -1982,7 +1982,7 @@ _bfd_write_archive_contents (bfd *arch) return FALSE; if ((elength % 2) == 1) { - if (bfd_bwrite (ARFMAG, 1, arch) != 1) + if (bfd_bwrite (&ARFMAG[1], 1, arch) != 1) return FALSE; } } @@ -2024,7 +2024,7 @@ _bfd_write_archive_contents (bfd *arch) if ((arelt_size (current) % 2) == 1) { - if (bfd_bwrite (ARFMAG, 1, arch) != 1) + if (bfd_bwrite (&ARFMAG[1], 1, arch) != 1) return FALSE; } } -- 2.30.2