[ELF] Allow references to reserved symbols in linker scripts
authorPetr Hosek <phosek@chromium.org>
Thu, 23 Mar 2017 03:52:34 +0000 (03:52 +0000)
committerPetr Hosek <phosek@chromium.org>
Thu, 23 Mar 2017 03:52:34 +0000 (03:52 +0000)
commit30f16b23398f44926656d221131f1b015f424b8f
tree200bf80bdd3ce5aec9a93450292d5689c6721607
parent968381ef22f9d782a8097b05a3eb5781e58eebb7
[ELF] Allow references to reserved symbols in linker scripts

This requires collectign all symbols referenced in the linker script
and adding them to symbol table as undefined symbol.

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

llvm-svn: 298577
lld/ELF/Driver.cpp
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/test/ELF/linkerscript/symbol-reserved.s [new file with mode: 0644]