[ELF] Create and export symbols provided by a linker script if they referenced by...
authorIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 27 Feb 2018 07:18:07 +0000 (07:18 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 27 Feb 2018 07:18:07 +0000 (07:18 +0000)
commit3345c9ac189bc6393bd95a634f1b46d247049dd1
tree4ad39eca5629d51d75a52d424848041ecc9fee60
parent612cf21ec7ae21fa294234c583aa7888e3ae410d
[ELF] Create and export symbols provided by a linker script if they referenced by DSOs.

It should be possible to resolve undefined symbols in dynamic libraries
using symbols defined in a linker script.

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

llvm-svn: 326176
lld/ELF/Driver.cpp
lld/ELF/InputFiles.cpp
lld/ELF/InputFiles.h
lld/ELF/LinkerScript.cpp
lld/ELF/SymbolTable.cpp
lld/test/ELF/linkerscript/Inputs/provide-shared2.s [new file with mode: 0644]
lld/test/ELF/linkerscript/provide-shared2.s [new file with mode: 0644]