Fix pr17056.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 16 Jun 2014 16:41:00 +0000 (16:41 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 16 Jun 2014 16:41:00 +0000 (16:41 +0000)
commit95cf2f25feb6c9354961497e1987afea49a07ed3
tree5fe8784a5be2385920172362c127500497efea9a
parent8f2efc3a9119e7ebddcff2594195165e46a0e59f
Fix pr17056.

This makes llvm-nm ignore members that are not sufficiently aligned for
lib/Object to handle.

These archives are invalid. GNU AR is able to handle this, but in general
just warns about broken archive members.

We should probably start warning too, but for now just make sure llvm-nm
exits with an 0.

llvm-svn: 211036
llvm/lib/Object/ELFObjectFile.cpp
llvm/test/Object/Inputs/corrupt-archive.a [new file with mode: 0644]
llvm/test/Object/nm-archive.test