forked from OSchip/llvm-project
[lld][WebAssembly] Fix typo in error message
Differential Revision: https://reviews.llvm.org/D64315 llvm-svn: 365304
This commit is contained in:
parent
04ea772d5a
commit
d0e1d00397
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue