diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index a66c4df66e7e..f25ef793597f 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -808,7 +808,7 @@ template void SharedFile::parseRest() { } 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)); continue; } diff --git a/lld/test/ELF/invalid-local-symbol-in-dso.s b/lld/test/ELF/invalid-local-symbol-in-dso.s index e15fc15ce87a..b512621e1c28 100644 --- a/lld/test/ELF/invalid-local-symbol-in-dso.s +++ b/lld/test/ELF/invalid-local-symbol-in-dso.s @@ -4,7 +4,7 @@ # 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: 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: not ld.lld %t2.o %p/Inputs/local-symbol-in-dso.so -o %t diff --git a/lld/wasm/InputFiles.cpp b/lld/wasm/InputFiles.cpp index 3dc5fa88d953..993149532484 100644 --- a/lld/wasm/InputFiles.cpp +++ b/lld/wasm/InputFiles.cpp @@ -135,7 +135,7 @@ InputSegment *ObjFile::getSegment(const WasmSymbol &WasmSym) { return Segment; } } - error("Symbol not found in any segment: " + WasmSym.Name); + error("symbol not found in any segment: " + WasmSym.Name); return nullptr; }