]> granicus.if.org Git - clang/commit
[mips] Add '-mrelax-pic-calls', '-mno-relax-pic-calls'
authorVladimir Stefanovic <vladimir.stefanovic@rt-rk.com>
Fri, 18 Jan 2019 19:54:51 +0000 (19:54 +0000)
committerVladimir Stefanovic <vladimir.stefanovic@rt-rk.com>
Fri, 18 Jan 2019 19:54:51 +0000 (19:54 +0000)
commit8bb3870f2a084806cd991b45eacc470bda8dbc09
tree24f9e3b9bbe8d3a781a14adcc6aec0b5d9ba3f26
parentdee1d67a610312b4b4dd2620b536d8962ac97365
[mips] Add '-mrelax-pic-calls', '-mno-relax-pic-calls'

These two options enable/disable emission of R_{MICRO}MIPS_JALR fixups along
with PIC calls. The linker may then try to turn PIC calls into direct jumps.
By default, these fixups do get emitted by the backend, use
'-mno-relax-pic-calls' to omit them.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351579 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Driver/ToolChains/Clang.cpp
test/Driver/mips-features.c