Commit 4f261e9a authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

PPC: passing correct const pool offset for reloc

Change-Id: I17ab5dbf79acbba1c562ecaf585e919da6cfaf75
Reviewed-on: https://chromium-review.googlesource.com/c/1412632Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#58851}
parent f2303d9a
......@@ -370,7 +370,7 @@ void NativeModuleSerializer::WriteCode(const WasmCode* code, Writer* writer) {
code->constant_pool(), mask);
for (RelocIterator iter(
{code_start, code->instructions().size()}, code->reloc_info(),
reinterpret_cast<Address>(code_start) + code->unpadded_binary_size(),
reinterpret_cast<Address>(code_start) + code->constant_pool_offset(),
mask);
!iter.done(); iter.next(), orig_iter.next()) {
RelocInfo::Mode mode = orig_iter.rinfo()->rmode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment