]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Allow zero length archive elements
authorAlan Modra <amodra@gmail.com>
Wed, 9 Mar 2016 06:31:54 +0000 (17:01 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 9 Mar 2016 06:31:54 +0000 (17:01 +1030)
commit343a405c03ce478634d8ce5a38faae832d39b361
treecea6a40cc3c1c5f8d3495df124ea8a6347a45952
parenta839b40af2f7e310bb6021ba6aafedcca1316314
Allow zero length archive elements

bfd/
PR binutils/19775
* archive.c (bfd_generic_openr_next_archived_file): Allow zero
length elements in the archive.
* coff-alpha.c (alpha_ecoff_openr_next_archived_file): Likewise.

binutils/
PR binutils/19775
* testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
Run the new proc.
* testsuite/binutils-all/empty: New, empty, file.
bfd/ChangeLog
bfd/archive.c
bfd/coff-alpha.c
binutils/ChangeLog
binutils/testsuite/binutils-all/ar.exp
binutils/testsuite/binutils-all/empty [new file with mode: 0644]