Add support for writing 64-bit symbol tables for archives when offsets become too...
authorJake Ehrlich <jakehehrlich@google.com>
Fri, 27 Oct 2017 22:26:37 +0000 (22:26 +0000)
committerJake Ehrlich <jakehehrlich@google.com>
Fri, 27 Oct 2017 22:26:37 +0000 (22:26 +0000)
commit9d5a7c3b8c772f07dd3b41541e50eb303f2e7fd0
tree27788758b3db64c2aba79c6b6839b2c93db8f50b
parent4dc04e6a701a4a033d348c5ca6edb045de5a1cf4
Add support for writing 64-bit symbol tables for archives when offsets become too large for 32-bit

This should fix https://bugs.llvm.org//show_bug.cgi?id=34189

This change makes it so that if writing a K_GNU style archive, you need
to output a > 32-bit offset it should output in K_GNU64 style instead.

Differential Revision: https://reviews.llvm.org/D36812

llvm-svn: 316805
llvm/lib/Object/ArchiveWriter.cpp
llvm/test/Object/archive-SYM64-write.test [new file with mode: 0644]