[LinkerScript] Handle symbols defined in linker scripts
authorRafael Auler <rafaelauler@gmail.com>
Mon, 16 Mar 2015 20:39:07 +0000 (20:39 +0000)
committerRafael Auler <rafaelauler@gmail.com>
Mon, 16 Mar 2015 20:39:07 +0000 (20:39 +0000)
commit01d73c967895865ce9a9601244ac7daa8b4ba7d1
treec56e8809f50d949e4967a2e0fc4d367e10d0426b
parent18e92078f2e190820071fb49d78ebe3fea3f299d
[LinkerScript] Handle symbols defined in linker scripts

Puts symbols defined in linker script expressions in a runtime file that is
added as input to the resolver, making the input object files see symbols
defined in linker scripts.

http://reviews.llvm.org/D8263

llvm-svn: 232409
12 files changed:
lld/include/lld/ReaderWriter/ELFLinkingContext.h
lld/include/lld/ReaderWriter/LinkerScript.h
lld/lib/ReaderWriter/ELF/ARM/ARMExecutableWriter.h
lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h
lld/lib/ReaderWriter/ELF/ELFFile.h
lld/lib/ReaderWriter/ELF/ExecutableWriter.h
lld/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableAtoms.h
lld/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h
lld/lib/ReaderWriter/ELF/OutputELFWriter.h
lld/lib/ReaderWriter/LinkerScript.cpp
lld/test/elf/linkerscript/Inputs/simple.o.yaml [new file with mode: 0644]
lld/test/elf/linkerscript/symbol-definition.test [new file with mode: 0644]