PR binutils/13534
commitf38a1951764a834024cbcee9a65f3d6759e63f65
authorNick Clifton <nickc@redhat.com>
Fri, 20 Jan 2012 14:42:56 +0000 (20 14:42 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 20 Jan 2012 14:42:56 +0000 (20 14:42 +0000)
tree0063f33ff851f5aa2c81e1f0f8921d95133e7644
parenta30dc1b3b60fed26982e564e390e8837feab0409
PR binutils/13534
* archive.c (_bfd_ar_sizepad): New function. Correctly install and
pad the size field in an archive header.
(_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
function for the archive size field.
(bfd_generic_openr_next_archived_file): Likewise.
(do_slurp_coff_armap): Likewise.
(_bfd_write_archive_contents): Likewise.
(_bfd_bsd44_write_ar_hdr): Use the new function.
(bfd_ar_hdr_from_filesystem): Likewise.
(_bfd_write_archive_contents): Likewise.
(bsd_write_armap): Likewise.
(coff_write_armap): Likewise.
* archive64.c (bfd_elf64_archive_write_armap): Likewise.
* bfdio.c (bfd_bread): Use correct type for archive element
sizes.
* ar.c (open_inarch): Likewise.
(extract_file): Likewise.
* libbfd-in.h (struct areltdata): Use correct types for
parsed_size and extra_size fields.
Prototype _bfd_ar_sizepad function.
* libbfd.h: Regenerate.
bfd/ChangeLog
bfd/archive.c
bfd/archive64.c
bfd/bfdio.c
bfd/libbfd-in.h
bfd/libbfd.h