[ELF] - Change way how we handle --noinhibit-exec
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 26 Jul 2017 09:46:59 +0000 (09:46 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 26 Jul 2017 09:46:59 +0000 (09:46 +0000)
commit84941ef1585789956156d2067649f27a5b360ae8
treeb7b17f45b68a16c7650814a8241aafd426957c50
parentb1fd7849361f16b9059ddd6956c0f3f2eca784b3
[ELF] - Change way how we handle --noinhibit-exec

Previously we handled this option implicitly, only
for infering unresolved symbols handling policy.

ld man says: "--noinhibit-exec Retain the executable
output file whenever it is still usable",
and we may want to handle other cases too.

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

llvm-svn: 309091
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Relocations.cpp
lld/test/ELF/copy-errors.s
lld/test/ELF/x86-64-dyn-rel-error.s