COFF: Handle /include in .drectve.
authorRui Ueyama <ruiu@google.com>
Thu, 18 Jun 2015 23:20:11 +0000 (23:20 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 18 Jun 2015 23:20:11 +0000 (23:20 +0000)
commit08d5e1875ff2859cdaada55a8f4f6ed338949cca
tree89391472366e214b4b81aa322d5981457c44cc47
parente8d56b5258012dffdc0ea6dfa57168a1a2d83403
COFF: Handle /include in .drectve.

We don't want to insert a new symbol to the symbol table while reading
a .drectve section because it's going to be too complicated.
That we are reading a directive section means that we are currently
reading some object file. Adding a new undefined symbol to the symbol
table can trigger a library file to read a new file, so it would make
the call stack too deep.

In this patch, I add new symbol names to a list to resolve them later.

llvm-svn: 240076
lld/COFF/Config.h
lld/COFF/Driver.cpp
lld/test/COFF/include.test