[ELF] - Create _DYNAMIC symbol for dynamic output
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 1 Mar 2016 16:23:13 +0000 (16:23 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 1 Mar 2016 16:23:13 +0000 (16:23 +0000)
commitaa4dc20f09795133f1054a665ff8f35c5fd6b531
tree5b5ad8703c1db68c849682031205897f63e6d1fa
parent9fea531feccf6f21d7d1b0c1b98382af26f6258e
[ELF] - Create _DYNAMIC symbol for dynamic output

lld needs to provide _DYNAMIC symbol when creating a shared library
both bfd and gold do that.

This should fix the https://llvm.org/bugs/show_bug.cgi?id=26732

Differential revision: http://reviews.llvm.org/D17607

llvm-svn: 262348
16 files changed:
lld/ELF/SymbolTable.cpp
lld/ELF/SymbolTable.h
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h
lld/ELF/Writer.cpp
lld/test/ELF/basic-ppc.s
lld/test/ELF/comdat.s
lld/test/ELF/discard-merge-locals.s
lld/test/ELF/discard-merge-unnamed.s
lld/test/ELF/discard-none.s
lld/test/ELF/dynamic.s [new file with mode: 0644]
lld/test/ELF/gc-sections-local-sym.s
lld/test/ELF/local-dynamic.s
lld/test/ELF/section-symbol.s
lld/test/ELF/shared.s
lld/test/ELF/visibility.s