parent
44298f26b6
commit
29ceba7961
|
@ -808,7 +808,7 @@ template <class ELFT> void SharedFile<ELFT>::parseRest() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Sym.getBinding() == STB_LOCAL) {
|
if (Sym.getBinding() == STB_LOCAL) {
|
||||||
warn("Found local symbol '" + Name +
|
warn("found local symbol '" + Name +
|
||||||
"' in global part of symbol table in file " + toString(this));
|
"' in global part of symbol table in file " + toString(this));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# RUN: echo | llvm-mc - -o %t1.o -filetype=obj -triple x86_64-pc-linux
|
# RUN: echo | llvm-mc - -o %t1.o -filetype=obj -triple x86_64-pc-linux
|
||||||
# RUN: ld.lld %t1.o %p/Inputs/local-symbol-in-dso.so -o %t 2>&1 | \
|
# RUN: ld.lld %t1.o %p/Inputs/local-symbol-in-dso.so -o %t 2>&1 | \
|
||||||
# RUN: FileCheck -check-prefix=WARN %s
|
# RUN: FileCheck -check-prefix=WARN %s
|
||||||
# WARN: Found local symbol 'foo' in global part of symbol table in file {{.*}}local-symbol-in-dso.so
|
# WARN: found local symbol 'foo' in global part of symbol table in file {{.*}}local-symbol-in-dso.so
|
||||||
|
|
||||||
# RUN: llvm-mc %s -o %t2.o -filetype=obj -triple x86_64-pc-linux
|
# RUN: llvm-mc %s -o %t2.o -filetype=obj -triple x86_64-pc-linux
|
||||||
# RUN: not ld.lld %t2.o %p/Inputs/local-symbol-in-dso.so -o %t
|
# RUN: not ld.lld %t2.o %p/Inputs/local-symbol-in-dso.so -o %t
|
||||||
|
|
|
@ -135,7 +135,7 @@ InputSegment *ObjFile::getSegment(const WasmSymbol &WasmSym) {
|
||||||
return Segment;
|
return Segment;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
error("Symbol not found in any segment: " + WasmSym.Name);
|
error("symbol not found in any segment: " + WasmSym.Name);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue