aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorAndrew Ng <andrew.ng@sony.com>2020-10-21 16:11:50 +0100
committerAndrew Ng <andrew.ng@sony.com>2020-10-26 12:29:28 +0000
commit2add7c5cf3ebbba629d2756b3e91728e55b40881 (patch)
treecdd3f7a27e78b040b0c9c12151a0894464b74a19 /clang/lib/Basic/SourceManager.cpp
parente4991867fb5ace434640bfacfd28720ad031d33c (diff)
downloadllvm-2add7c5cf3ebbba629d2756b3e91728e55b40881.zip
llvm-2add7c5cf3ebbba629d2756b3e91728e55b40881.tar.gz
llvm-2add7c5cf3ebbba629d2756b3e91728e55b40881.tar.bz2
[llvm-ar][Object] Fix detection of need for 64-bit archive symbol tables
The code to detect the requirement for 64-bit offsets in the archive symbol table was not correctly accounting for the archive file signature and the size of all the contents of the symbol table itself, e.g. the symbol table's header and string table. Also was not considering the variation in symbol table formats. This could result in the creation of large archives with a corrupt symbol table. Change the testing environment variable SYM64_THRESHOLD to be an absolute value rather than a power of 2 in order to enable precise testing of this detection code. Differential Revision: https://reviews.llvm.org/D89891
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions