summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/LTO/LTOCodeGenerator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp
index 9009958613..2772676c8e 100644
--- a/lib/LTO/LTOCodeGenerator.cpp
+++ b/lib/LTO/LTOCodeGenerator.cpp
@@ -141,6 +141,11 @@ void LTOCodeGenerator::setTargetOptions(TargetOptions options) {
Options.TrapFuncName = options.TrapFuncName;
Options.PositionIndependentExecutable = options.PositionIndependentExecutable;
Options.UseInitArray = options.UseInitArray;
+ Options.DataSections = options.DataSections;
+ Options.FunctionSections = options.FunctionSections;
+
+ Options.MCOptions = options.MCOptions;
+ Options.JTType = options.JTType;
}
void LTOCodeGenerator::setDebugInfo(lto_debug_model debug) {