Fix handling of files without a symbol table.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 7 Jun 2013 21:08:19 +0000 (21:08 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 7 Jun 2013 21:08:19 +0000 (21:08 +0000)
commita0af48fc93f9b2dfcbad78d59b87b9b2edab00da
tree7e901b9476668cc82bbcfcc26992b23b1a88cb71
parent999dacc55b96643a9942c5e69d63381ff569ca33
Fix handling of files without a symbol table.

This fixes a recent regression (r183338). Stripped elf files (like installed
crtn.o for example), are not required to have a symbol table. Handle that
correctly.

llvm-svn: 183573
lld/lib/ReaderWriter/ELF/File.h
lld/test/elf/Inputs/stripped-empty.x86_64 [new file with mode: 0644]
lld/test/elf/stripped-empty.test [new file with mode: 0644]