summaryrefslogtreecommitdiff
path: root/src/binary-reader-objdump.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@igalia.com>2020-10-01 17:30:58 +0200
committerGitHub <noreply@github.com>2020-10-01 08:30:58 -0700
commitee87440dedb4335d5ca8ec25e86b36c27a5b3368 (patch)
tree522ec9766d5da42fd8b8ba6efa0c6e74fc370748 /src/binary-reader-objdump.h
parentcd63243c5b3b2fa938f365edab30139f74549b51 (diff)
downloadwabt-ee87440dedb4335d5ca8ec25e86b36c27a5b3368.tar.gz
wabt-ee87440dedb4335d5ca8ec25e86b36c27a5b3368.tar.bz2
wabt-ee87440dedb4335d5ca8ec25e86b36c27a5b3368.zip
Add --relocatable support for tables (#1549) (#1549)
We add relocations for table numbers on each place where we reify a table number (call_indirect, table.get, table.set...), but only if reference types are enabled. Also, fix symbol table generation with unnamed definitions, to allow for relocating references to anonymous functions or tables. As tests, add variants of the relocations and symbol-tables dump tests, with and without all features enabled. Enabling reference types causes relocs to be emitted. We also add --details to the relocations dump tests, so that we can see the target symbols for the relocations.
Diffstat (limited to 'src/binary-reader-objdump.h')
-rw-r--r--src/binary-reader-objdump.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/binary-reader-objdump.h b/src/binary-reader-objdump.h
index b1e24f81..b2874dac 100644
--- a/src/binary-reader-objdump.h
+++ b/src/binary-reader-objdump.h
@@ -73,6 +73,7 @@ struct ObjdumpState {
ObjdumpNames section_names;
ObjdumpNames event_names;
ObjdumpNames segment_names;
+ ObjdumpNames table_names;
std::vector<ObjdumpSymbol> symtab;
};