projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb391f
)
[WebAssembly] Fix relocation count in wasm binaries with call_indirect
author
Sam Clegg
<sbc@chromium.org>
Tue, 25 Apr 2017 17:13:23 +0000
(17:13 +0000)
committer
Sam Clegg
<sbc@chromium.org>
Tue, 25 Apr 2017 17:13:23 +0000
(17:13 +0000)
Subscribers: jfb, dschuff
Differential Revision: https://reviews.llvm.org/D32459
llvm-svn: 301331
llvm/lib/MC/WasmObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/WasmObjectWriter.cpp
b/llvm/lib/MC/WasmObjectWriter.cpp
index
159cc3b
..
6444046
100644
(file)
--- a/
llvm/lib/MC/WasmObjectWriter.cpp
+++ b/
llvm/lib/MC/WasmObjectWriter.cpp
@@
-1105,7
+1105,7
@@
void WasmObjectWriter::writeObject(MCAssembler &Asm,
encodeULEB128(wasm::WASM_SEC_CODE, getStream());
- encodeULEB128(CodeRelocations.size(), getStream());
+ encodeULEB128(CodeRelocations.size()
+ TypeIndexFixups.size()
, getStream());
WriteRelocations(CodeRelocations, getStream(), SymbolIndices);
WriteTypeRelocations(TypeIndexFixups, TypeIndexFixupTypes, getStream());