[Driver] Make the use of relax relocations a per target option
authorPetr Hosek <phosek@chromium.org>
Wed, 22 Nov 2017 01:38:31 +0000 (01:38 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 22 Nov 2017 01:38:31 +0000 (01:38 +0000)
commit5668d83e0e7b1221eb440e0e5aef049306b050a1
tree46f7b899a21c49b251a367969ee911ed35767e3f
parent0a340ab31c85b797b0d355dfcc1170aaf850822d
[Driver] Make the use of relax relocations a per target option

The support for relax relocations is dependent on the linker and
different toolchains within the same compiler can be using different
linkers some of which may or may not support relax relocations.

Give toolchains the option to control whether they want to use relax
relocations in addition to the existing (global) build system option.

Differential Revision: https://reviews.llvm.org/D39831

llvm-svn: 318816
clang/cmake/caches/Fuchsia-stage2.cmake
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/Fuchsia.h
clang/test/Driver/fuchsia.c