mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
* archive.c (_bfd_write_archive_contents): Fix incorrect use of
ARFMAG.
This commit is contained in:
parent
cc0dcea88a
commit
38d6ea5b02
@ -1,3 +1,8 @@
|
||||
2008-04-21 Cary Coutant <ccoutant@google.com>
|
||||
|
||||
* archive.c (_bfd_write_archive_contents): Fix incorrect use of
|
||||
ARFMAG.
|
||||
|
||||
2008-04-21 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user