OSDN Git Service

Archives require a symbol table on Solaris, even if empty.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 14 Mar 2017 19:57:13 +0000 (19:57 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 14 Mar 2017 19:57:13 +0000 (19:57 +0000)
commit22bd70fa3199c3e8fa64e9ef64d72c1e5c297dfb
tree1fc60a619716301b0519aaaa139b7d3d56daa21d
parentc67a9ef0ea927dadf0834c963c4b5b9d0800ee30
Archives require a symbol table on Solaris, even if empty.

On Solaris ld (and some other tools that use the underlying utility
libraries, such as elfdump) chokes on an archive library that has no
symbol table. The Solaris tools always create one, even if it's empty.

That bug has been fixed in the latest development line, and can
probably be backported to a supported release, but it would be nice if
LLVM's archiver could emit the empty symbol table, too.

Patch by Danek Duvall!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297773 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/ArchiveWriter.cpp
test/Object/Inputs/solaris-nosymbols.yaml [new file with mode: 0644]
test/Object/archive-format.test