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)
commit7f2f94faeb04e0f97990d9d941745a630aaa5a54
tree2dab4dc4b46bde27ba3e9a6607d10369c7df667c
parent0659928fec02d5a953e528739cc036f7a68deb63
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211036 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/ELFObjectFile.cpp
test/Object/Inputs/corrupt-archive.a [new file with mode: 0644]
test/Object/nm-archive.test