[lld] Infer relocation model from module flags in relocatable LTO link.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 22 May 2017 21:11:44 +0000 (21:11 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 22 May 2017 21:11:44 +0000 (21:11 +0000)
commitf12ac5b77612c9dbdbbf7f34cfda4a96d5cdc732
tree6050b8fb4910b5a6ba8ddad05668a24b771d263b
parentb9f1b014e1aa47550e1e4bb0c0bf143fc01f6c20
[lld] Infer relocation model from module flags in relocatable LTO link.

Fix for PR33096.

llvm-svn: 303579
lld/ELF/LTO.cpp
lld/test/ELF/lto/Inputs/relocation-model-pic.ll [new file with mode: 0644]
lld/test/ELF/lto/relocation-model.ll [new file with mode: 0644]