This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Make the use of relax relocations a per target option
ClosedPublic

Authored by phosek on Nov 9 2017, 12:33 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Nov 9 2017, 12:33 AM
phosek edited the summary of this revision. (Show Details)Nov 9 2017, 12:33 AM
phosek updated this revision to Diff 123838.Nov 21 2017, 12:37 PM

Added a test case.

This revision is now accepted and ready to land.Nov 21 2017, 12:57 PM
This revision was automatically updated to reflect the committed changes.