Update mclinker to 176d79dc69b439b23ce7101ef8c3250057119664.
Change-Id: Ibae073aefc7838fce46875a6bf6ce7b7e18eced8
Date: Mon Mar 4 22:29:06 2013 +0100
diff --git a/lib/LD/GNUArchiveReader.cpp b/lib/LD/GNUArchiveReader.cpp
index 82e4fec..6324824 100644
--- a/lib/LD/GNUArchiveReader.cpp
+++ b/lib/LD/GNUArchiveReader.cpp
@@ -89,6 +89,10 @@
bool GNUArchiveReader::readArchive(Archive& pArchive)
{
+ // bypass the empty archive
+ if (Archive::MAGIC_LEN == pArchive.getARFile().memArea()->handler()->size())
+ return true;
+
if (pArchive.getARFile().attribute()->isWholeArchive())
return includeAllMembers(pArchive);