summaryrefslogtreecommitdiff
path: root/src/binary-writer.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-08-31 15:07:54 -0700
committerGitHub <noreply@github.com>2017-08-31 15:07:54 -0700
commit03a3c76144192dcc53826ba1cefb35c6502e407e (patch)
tree03c26c4c3a4caa3896c453f3bb748ec16559e7dd /src/binary-writer.cc
parent9a5a40909044d24d5a80085de3c9d952d4fe1a40 (diff)
downloadwabt-03a3c76144192dcc53826ba1cefb35c6502e407e.tar.gz
wabt-03a3c76144192dcc53826ba1cefb35c6502e407e.tar.bz2
wabt-03a3c76144192dcc53826ba1cefb35c6502e407e.zip
Update relocation names to match tool convention doc (#603)
See https://github.com/WebAssembly/tool-conventions/blob/master/Linking.md#relocation-sections
Diffstat (limited to 'src/binary-writer.cc')
-rw-r--r--src/binary-writer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/binary-writer.cc b/src/binary-writer.cc
index 128f8afa..7be8ecb8 100644
--- a/src/binary-writer.cc
+++ b/src/binary-writer.cc
@@ -718,9 +718,9 @@ void BinaryWriter::WriteRelocSection(const RelocSection* reloc_section) {
WriteU32Leb128(&stream_, reloc.offset, "reloc offset");
WriteU32Leb128(&stream_, reloc.index, "reloc index");
switch (reloc.type) {
- case RelocType::GlobalAddressLEB:
- case RelocType::GlobalAddressSLEB:
- case RelocType::GlobalAddressI32:
+ case RelocType::MemoryAddressLEB:
+ case RelocType::MemoryAddressSLEB:
+ case RelocType::MemoryAddressI32:
WriteU32Leb128(&stream_, reloc.addend, "reloc addend");
break;
default: