[ELF] - Allow discarding .hash and .gnu.hash from linker script.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 7 Mar 2018 11:47:15 +0000 (11:47 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 7 Mar 2018 11:47:15 +0000 (11:47 +0000)
commit54baa5f45f8c18df99e58291d498382daaa6dca0
tree14aaadb5c548b35eb2cc64737de0aea3b596f138
parent52ae4f078e0c14e51ef4e7f8734b935c8a7aebd2
[ELF] - Allow discarding .hash and .gnu.hash from linker script.

Currently, LLD segfaults when linker script attempts to discard
one of the hash sections. This patch fixes that.

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

llvm-svn: 326891
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/discard-gnu-hash.s [new file with mode: 0644]