[ELF] Don't discard excluded section if -r is used
authorEugene Leviant <evgeny.leviant@gmail.com>
Tue, 4 Oct 2016 12:05:42 +0000 (12:05 +0000)
committerEugene Leviant <evgeny.leviant@gmail.com>
Tue, 4 Oct 2016 12:05:42 +0000 (12:05 +0000)
commitb90f3cf15ba286156fc43ec7882c162c24d6446c
tree38983da3256f56121bbead60de83f2e1f6c4c9bf
parent40be15cfb0c4df6d8013a62b013aba354855b8b1
[ELF] Don't discard excluded section if -r is used

This conforms to GNU ld/gold behavior and fixes crash in case
excluded section also has associated relocation section

llvm-svn: 283214
lld/ELF/InputFiles.cpp
lld/test/ELF/exclude.s