diff options
| author | Sriraman Tallam <tmsriram@google.com> | 2016-10-13 20:54:39 +0000 |
|---|---|---|
| committer | Sriraman Tallam <tmsriram@google.com> | 2016-10-13 20:54:39 +0000 |
| commit | f29fa586e1b403e2ee1a845e7f428a8d04215dc3 (patch) | |
| tree | 22375f3dbc4869421da28220f78fcfd2cb4fd513 /llvm/lib/MC | |
| parent | 606f01f3092da36b761f9df694e8c8eab9dde603 (diff) | |
| download | bcm5719-llvm-f29fa586e1b403e2ee1a845e7f428a8d04215dc3.tar.gz bcm5719-llvm-f29fa586e1b403e2ee1a845e7f428a8d04215dc3.zip | |
New llc option pie-copy-relocations to optimize access to extern globals.
This option indicates copy relocations support is available from the linker
when building as PIE and allows accesses to extern globals to avoid the GOT.
Differential Revision: https://reviews.llvm.org/D24849
llvm-svn: 284160
Diffstat (limited to 'llvm/lib/MC')
| -rw-r--r-- | llvm/lib/MC/MCTargetOptions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCTargetOptions.cpp b/llvm/lib/MC/MCTargetOptions.cpp index 1d956a8ffce..e847a17dfec 100644 --- a/llvm/lib/MC/MCTargetOptions.cpp +++ b/llvm/lib/MC/MCTargetOptions.cpp @@ -16,7 +16,8 @@ MCTargetOptions::MCTargetOptions() : SanitizeAddress(false), MCRelaxAll(false), MCNoExecStack(false), MCFatalWarnings(false), MCNoWarn(false), MCSaveTempLabels(false), MCUseDwarfDirectory(false), MCIncrementalLinkerCompatible(false), - ShowMCEncoding(false), ShowMCInst(false), AsmVerbose(false), + MCPIECopyRelocations(false), ShowMCEncoding(false), + ShowMCInst(false), AsmVerbose(false), PreserveAsmComments(true), DwarfVersion(0), ABIName() {} StringRef MCTargetOptions::getABIName() const { |

