summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-07-08 09:34:30 +0000
committerSam Clegg <sbc@chromium.org>2019-07-08 09:34:30 +0000
commitd0e1d0039717191a507ee71486b3238c458b27b7 (patch)
tree66f469b4ca15c6876e529b141dedbbd4cc902ce2
parent04ea772d5af945cc0c5e61219a5871c4cf7dd3c6 (diff)
downloadbcm5719-llvm-d0e1d0039717191a507ee71486b3238c458b27b7.tar.gz
bcm5719-llvm-d0e1d0039717191a507ee71486b3238c458b27b7.zip
[lld][WebAssembly] Fix typo in error message
Differential Revision: https://reviews.llvm.org/D64315 llvm-svn: 365304
-rw-r--r--lld/test/wasm/undefined-data.ll6
-rw-r--r--lld/wasm/Relocations.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/lld/test/wasm/undefined-data.ll b/lld/test/wasm/undefined-data.ll
index c3928bc8ce1..4c8864854f9 100644
--- a/lld/test/wasm/undefined-data.ll
+++ b/lld/test/wasm/undefined-data.ll
@@ -13,6 +13,6 @@ entry:
ret i32 %0
}
-; UNDEF: undefined symbol: data_external
-; ALLOW: undefined-data.ll.tmp.o: cannot resolve relocation of type R_WASM_MEMORY_ADDR_LEB against undefined (non-weak) data symbol: data_external
-; SHARED: undefined-data.ll.tmp.o: relocation R_WASM_MEMORY_ADDR_LEB cannot be used againt symbol data_external; recompile with -fPIC
+; UNDEF: error: {{.*}}undefined-data.ll.tmp.o: undefined symbol: data_external
+; ALLOW: error: {{.*}}undefined-data.ll.tmp.o: cannot resolve relocation of type R_WASM_MEMORY_ADDR_LEB against undefined (non-weak) data symbol: data_external
+; SHARED: error: {{.*}}undefined-data.ll.tmp.o: relocation R_WASM_MEMORY_ADDR_LEB cannot be used against symbol data_external; recompile with -fPIC
diff --git a/lld/wasm/Relocations.cpp b/lld/wasm/Relocations.cpp
index afff6fb747d..00b54227864 100644
--- a/lld/wasm/Relocations.cpp
+++ b/lld/wasm/Relocations.cpp
@@ -69,7 +69,7 @@ void lld::wasm::scanRelocations(InputChunk *Chunk) {
// Certain relocation types can't be used when building PIC output,
// since they would require absolute symbol addresses at link time.
error(toString(File) + ": relocation " + relocTypeToString(Reloc.Type) +
- " cannot be used againt symbol " + toString(*Sym) +
+ " cannot be used against symbol " + toString(*Sym) +
"; recompile with -fPIC");
break;
case R_WASM_TABLE_INDEX_I32:
OpenPOWER on IntegriCloud