aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-02-12 02:50:05 +0000
committerRui Ueyama <ruiu@google.com>2015-02-12 02:50:05 +0000
commit1a40b2062c1db7b5c23c734f00fc3f9f2fa590e1 (patch)
treee235352d6659f458396256465a6ab2fcc341a46b /clang/lib/Frontend/InitPreprocessor.cpp
parent63aaa98d94afaf7b1fd73d8b50a00ebf7392ba83 (diff)
downloadllvm-1a40b2062c1db7b5c23c734f00fc3f9f2fa590e1.zip
llvm-1a40b2062c1db7b5c23c734f00fc3f9f2fa590e1.tar.gz
llvm-1a40b2062c1db7b5c23c734f00fc3f9f2fa590e1.tar.bz2
PECOFF: make dumpbin tool happy.
The dumpbin tool in the MSVC toolchain cannot handle an executable created by LLD if the executable contains a long section name. In PE/COFF, a section name is stored to a section table entry. Because the section name field in the table is only 8 byte long, a name longer than that is stored to the string table and the offset in the string table is stored to the section table entry instead. In order to look up a string from the string table, tools need to handle the symbol table, because the string table is defined as it immediately follows the symbol table. And seems the dumpbin doesn't like zero-length symbol table. This patch teaches LLD how to emit a dummy symbol table. The dummy table has one dummy entry in it. llvm-svn: 228900
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions