[WebAssembly] Weak symbols should be defined in SF_Global
Summary: This manifested itself in lld since it meant that weak symbols were not appearing in archive symbol tables. Subscribers: jfb, dschuff, jgravelle-google, aheejin Differential Revision: https://reviews.llvm.org/D38111 llvm-svn: 313838
This commit is contained in:
@@ -769,7 +769,7 @@ uint32_t WasmObjectFile::getSymbolFlags(DataRefImpl Symb) const {
|
||||
DEBUG(dbgs() << "getSymbolFlags: ptr=" << &Sym << " " << Sym << "\n");
|
||||
if (Sym.isWeak())
|
||||
Result |= SymbolRef::SF_Weak;
|
||||
else if (Sym.isGlobal())
|
||||
if (!Sym.isLocal())
|
||||
Result |= SymbolRef::SF_Global;
|
||||
|
||||
switch (Sym.Type) {
|
||||
|
||||
Reference in New Issue
Block a user