[LLD][ELF] - Support discarding the .dynamic section.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 10 Dec 2018 09:24:49 +0000 (09:24 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 10 Dec 2018 09:24:49 +0000 (09:24 +0000)
commit1f958ed2693e889b6a02c7381578d2d202a1a409
treeb91568215e5b552855ec8cc28a967944edc27e54
parentad667661c48c06807a87851d4b7360d97eb79b16
[LLD][ELF] - Support discarding the .dynamic section.

This is a part of https://bugs.llvm.org/show_bug.cgi?id=39810.

Seems it turns out that supporting /DISCARD/ for the .dynamic section with the
linker script is something we can do easily. The patch does this.

Differential revision: https://reviews.llvm.org/D55211

llvm-svn: 348749
lld/ELF/LinkerScript.cpp
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/discard-section-err.s