Remove Offset from Common.
It is not needed since it is always 0.
llvm-svn: 313076
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 3ccc2c9..ebbb8ef 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -872,7 +872,7 @@
if (auto *D = dyn_cast<DefinedRegular>(B))
return {D->Section, D->Value, Loc};
if (auto *C = dyn_cast<DefinedCommon>(B))
- return {C->Section, C->Offset, Loc};
+ return {C->Section, 0, Loc};
}
error(Loc + ": symbol not found: " + S);
return 0;