[PATCH] D21788: [ELF] - Remove Config->ZDefs flag.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 28 05:11:25 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL274003: [ELF] - Remove Config->ZDefs flag. (authored by grimar).
Changed prior to commit:
http://reviews.llvm.org/D21788?vs=62075&id=62078#toc
Repository:
rL LLVM
http://reviews.llvm.org/D21788
Files:
lld/trunk/ELF/Config.h
lld/trunk/ELF/Driver.cpp
lld/trunk/ELF/Writer.cpp
Index: lld/trunk/ELF/Config.h
===================================================================
--- lld/trunk/ELF/Config.h
+++ lld/trunk/ELF/Config.h
@@ -105,7 +105,6 @@
bool VersionScriptGlobalByDefault = true;
bool WarnCommon;
bool ZCombreloc;
- bool ZDefs;
bool ZExecStack;
bool ZNodelete;
bool ZNow;
Index: lld/trunk/ELF/Driver.cpp
===================================================================
--- lld/trunk/ELF/Driver.cpp
+++ lld/trunk/ELF/Driver.cpp
@@ -330,7 +330,8 @@
Config->GcSections = Args.hasArg(OPT_gc_sections);
Config->ICF = Args.hasArg(OPT_icf);
Config->NoGnuUnique = Args.hasArg(OPT_no_gnu_unique);
- Config->NoUndefined = Args.hasArg(OPT_no_undefined);
+ Config->NoUndefined =
+ Args.hasArg(OPT_no_undefined) || hasZOption(Args, "defs");
Config->NoUndefinedVersion = Args.hasArg(OPT_no_undefined_version);
Config->NoinhibitExec = Args.hasArg(OPT_noinhibit_exec);
Config->Pie = Args.hasArg(OPT_pie);
@@ -364,7 +365,6 @@
error("number of threads must be > 0");
Config->ZCombreloc = !hasZOption(Args, "nocombreloc");
- Config->ZDefs = hasZOption(Args, "defs");
Config->ZExecStack = hasZOption(Args, "execstack");
Config->ZNodelete = hasZOption(Args, "nodelete");
Config->ZNow = hasZOption(Args, "now");
Index: lld/trunk/ELF/Writer.cpp
===================================================================
--- lld/trunk/ELF/Writer.cpp
+++ lld/trunk/ELF/Writer.cpp
@@ -277,9 +277,8 @@
if (!Config->NoUndefined) {
if (Config->Relocatable)
return;
- if (Config->Shared && !Config->ZDefs)
- if (Sym->symbol()->Visibility == STV_DEFAULT)
- return;
+ if (Config->Shared && Sym->symbol()->Visibility == STV_DEFAULT)
+ return;
}
std::string Msg = "undefined symbol: " + Sym->getName().str();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21788.62078.patch
Type: text/x-patch
Size: 1815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160628/1946ee08/attachment.bin>
More information about the llvm-commits
mailing list