summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2016-10-19 20:24:06 +0000
committerSriraman Tallam <tmsriram@google.com>2016-10-19 20:24:06 +0000
commit165a8845f8ae72b5a7abbfaf348bf78e18fc1d0b (patch)
tree2400ca9fd83b56e9d9eda075825b0414ad33ad69 /clang/lib/CodeGen
parent9ca9a31948dc0266093fd84bee25c44bcba77abc (diff)
downloadbcm5719-llvm-165a8845f8ae72b5a7abbfaf348bf78e18fc1d0b.tar.gz
bcm5719-llvm-165a8845f8ae72b5a7abbfaf348bf78e18fc1d0b.zip
New clang option -mpie-copy-relocations to use copy relocations for PIE builds.
Differential Revision: https://reviews.llvm.org/D19996 llvm-svn: 284638
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 346aa0beb16..367cace096a 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -595,6 +595,8 @@ void EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
Options.MCOptions.MCNoExecStack = CodeGenOpts.NoExecStack;
Options.MCOptions.MCIncrementalLinkerCompatible =
CodeGenOpts.IncrementalLinkerCompatible;
+ Options.MCOptions.MCPIECopyRelocations =
+ CodeGenOpts.PIECopyRelocations;
Options.MCOptions.MCFatalWarnings = CodeGenOpts.FatalWarnings;
Options.MCOptions.AsmVerbose = CodeGenOpts.AsmVerbose;
Options.MCOptions.PreserveAsmComments = CodeGenOpts.PreserveAsmComments;
OpenPOWER on IntegriCloud