[PATCH] D48756: Add option for section ordering
Bill Wendling via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 7 16:26:14 PDT 2018
void updated this revision to Diff 154505.
https://reviews.llvm.org/D48756
Files:
tools/gold/gold-plugin.cpp
Index: tools/gold/gold-plugin.cpp
===================================================================
--- tools/gold/gold-plugin.cpp
+++ tools/gold/gold-plugin.cpp
@@ -834,9 +834,10 @@
// FIXME: Check the gold version or add a new option to enable them.
Conf.Options.RelaxELFRelocations = false;
- // Enable function/data sections by default.
- Conf.Options.FunctionSections = true;
- Conf.Options.DataSections = true;
+ if (FunctionSections.getNumOccurrences() == 0)
+ Conf.Options.FunctionSections = true;
+ if (DataSections.getNumOccurrences() == 0)
+ Conf.Options.DataSections = true;
Conf.MAttrs = MAttrs;
Conf.RelocModel = RelocationModel;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48756.154505.patch
Type: text/x-patch
Size: 673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180707/88b9a88a/attachment.bin>
More information about the llvm-commits
mailing list