summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h
diff options
context:
space:
mode:
authorRafael Auler <rafaelauler@gmail.com>2015-03-16 20:39:07 +0000
committerRafael Auler <rafaelauler@gmail.com>2015-03-16 20:39:07 +0000
commit01d73c967895865ce9a9601244ac7daa8b4ba7d1 (patch)
treec56e8809f50d949e4967a2e0fc4d367e10d0426b /lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h
parent18e92078f2e190820071fb49d78ebe3fea3f299d (diff)
downloadbcm5719-llvm-01d73c967895865ce9a9601244ac7daa8b4ba7d1.tar.gz
bcm5719-llvm-01d73c967895865ce9a9601244ac7daa8b4ba7d1.zip
[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
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h b/lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h
index 62fa6a767fa..3ca4aac129b 100644
--- a/lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h
+++ b/lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h
@@ -27,7 +27,7 @@ class DynamicLibraryWriter : public OutputELFWriter<ELFT> {
public:
DynamicLibraryWriter(ELFLinkingContext &context, TargetLayout<ELFT> &layout)
: OutputELFWriter<ELFT>(context, layout),
- _runtimeFile(new CRuntimeFile<ELFT>(context)) {}
+ _runtimeFile(new RuntimeFile<ELFT>(context, "C runtime")) {}
protected:
virtual void buildDynamicSymbolTable(const File &file);
@@ -36,7 +36,7 @@ protected:
virtual void finalizeDefaultAtomValues();
protected:
- std::unique_ptr<CRuntimeFile<ELFT> > _runtimeFile;
+ std::unique_ptr<RuntimeFile<ELFT> > _runtimeFile;
};
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud