[lld][WebAssembly] Allow linking of pic code into static binaries
authorSam Clegg <sbc@chromium.org>
Tue, 13 Aug 2019 17:02:02 +0000 (17:02 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 13 Aug 2019 17:02:02 +0000 (17:02 +0000)
commit7185a7301e860a2c7c35a2013ac27f6a8673f067
tree5655cadffe5519e4536d0d04ba755ef9a35f1675
parent57ae300562f826e3fee81017d6473a5dec516383
[lld][WebAssembly] Allow linking of pic code into static binaries

Summary: See https://github.com/emscripten-core/emscripten/issues/9013

Subscribers: dschuff, jgravelle-google, aheejin, sunfish, llvm-commits

Tags: #llvm

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

llvm-svn: 368719
lld/test/wasm/pic-static.ll [new file with mode: 0644]
lld/wasm/Driver.cpp
lld/wasm/Relocations.cpp
lld/wasm/Symbols.cpp
lld/wasm/Symbols.h
lld/wasm/SyntheticSections.cpp
lld/wasm/SyntheticSections.h
lld/wasm/Writer.cpp