diff options
author | Ben Smith <binjimin@gmail.com> | 2017-08-31 15:07:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 15:07:54 -0700 |
commit | 03a3c76144192dcc53826ba1cefb35c6502e407e (patch) | |
tree | 03c26c4c3a4caa3896c453f3bb748ec16559e7dd /src/binary-reader.cc | |
parent | 9a5a40909044d24d5a80085de3c9d952d4fe1a40 (diff) | |
download | wabt-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-reader.cc')
-rw-r--r-- | src/binary-reader.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc index 2ae82315..d17751c1 100644 --- a/src/binary-reader.cc +++ b/src/binary-reader.cc @@ -1205,9 +1205,9 @@ Result BinaryReader::ReadRelocSection(Offset section_size) { CHECK_RESULT(ReadIndex(&index, "index")); RelocType type = static_cast<RelocType>(reloc_type); switch (type) { - case RelocType::GlobalAddressLEB: - case RelocType::GlobalAddressSLEB: - case RelocType::GlobalAddressI32: + case RelocType::MemoryAddressLEB: + case RelocType::MemoryAddressSLEB: + case RelocType::MemoryAddressI32: CHECK_RESULT(ReadI32Leb128(&addend, "addend")); break; default: |