Allow zero length archive elements.
authorNick Clifton <nickc@redhat.com>
Mon, 7 Mar 2016 17:29:25 +0000 (17:29 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 7 Mar 2016 17:29:25 +0000 (17:29 +0000)
commit4fc874242f8f1bf17cf6e65b159dd804e793e6cd
tree270a038005096bd4ee9f8522926be270cfece2be
parent23a4bd22c75862fdbaa5faef59b9094ec738f675
Allow zero length archive elements.

bfd PR binutils/19775
* archive.c (bfd_generic_openr_next_archived_file): Allow zero
length elements in the archive.

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
binutils/ChangeLog
binutils/testsuite/binutils-all/ar.exp
binutils/testsuite/binutils-all/empty [new file with mode: 0644]