OSDN Git Service

Reland "Add support for writing 64-bit symbol tables for archives when offsets become...
authorJake Ehrlich <jakehehrlich@google.com>
Fri, 3 Nov 2017 19:15:06 +0000 (19:15 +0000)
committerJake Ehrlich <jakehehrlich@google.com>
Fri, 3 Nov 2017 19:15:06 +0000 (19:15 +0000)
commit06dbf5ad00617e8f526e9ed55343fc88fafef6a8
tree75b1ed2cf16c8e22393dbedb8a28e3fd4a68e8f5
parent1b91c5e8aad019b3b3649db6c496b74739b4e5d2
Reland "Add support for writing 64-bit symbol tables for archives when offsets become too large for 32-bit"

Tests were failing because some bots were running out of address
space and memory. Additionally the test was very slow. These issues
were solved by changing the test to take advantage of sparse filse and
restricting the test to run only on 64-bit systems.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317352 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/ArchiveWriter.cpp
test/Object/archive-SYM64-write.test [new file with mode: 0644]