[ELF] - Change wording of error message.
Previously message told us that relocations could
not be used when making shared object. That was
correct because message could appear (and it is expected)
when we linked executable.
Message should have being changed to something
that says we can't use a subset of relocations against shared
symbols.
Patch fixes the text.
llvm-svn: 272478
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index a064e48..32331ead 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -77,7 +77,7 @@
static void errorDynRel(uint32_t Type) {
error("relocation " + getRelName(Type) +
- " cannot be used when making a shared object; recompile with -fPIC.");
+ " cannot be used against shared object; recompile with -fPIC.");
}
namespace {