diff options
author | Alon Zakai <azakai@google.com> | 2020-03-04 17:37:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 17:37:22 -0800 |
commit | 5034bf1dd28c9066422680cf516513af92bbbb8a (patch) | |
tree | e188019ba0599b54749b1419cff565f401b22d70 /test | |
parent | 57a81a04f7a49593438dcae4ca8cbad8e465dc2e (diff) | |
download | binaryen-5034bf1dd28c9066422680cf516513af92bbbb8a.tar.gz binaryen-5034bf1dd28c9066422680cf516513af92bbbb8a.tar.bz2 binaryen-5034bf1dd28c9066422680cf516513af92bbbb8a.zip |
DWARF: Ignore a compile unit with no abbreviations (#2678)
Such a module can't have valid DIEs, since we have no way to
interpret them.
Also check if DWARF sections from LLVM have contents -
when they are empty the section may exist but have a null
for its data.
Fixes #2673
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/dwarf_unit_with_no_abbrevs_noprint.bin.txt | 0 | ||||
-rw-r--r-- | test/passes/dwarf_unit_with_no_abbrevs_noprint.passes | 1 | ||||
-rw-r--r-- | test/passes/dwarf_unit_with_no_abbrevs_noprint.wasm | bin | 0 -> 90489 bytes |
3 files changed, 1 insertions, 0 deletions
diff --git a/test/passes/dwarf_unit_with_no_abbrevs_noprint.bin.txt b/test/passes/dwarf_unit_with_no_abbrevs_noprint.bin.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test/passes/dwarf_unit_with_no_abbrevs_noprint.bin.txt diff --git a/test/passes/dwarf_unit_with_no_abbrevs_noprint.passes b/test/passes/dwarf_unit_with_no_abbrevs_noprint.passes new file mode 100644 index 000000000..48ea00769 --- /dev/null +++ b/test/passes/dwarf_unit_with_no_abbrevs_noprint.passes @@ -0,0 +1 @@ +roundtrip_g diff --git a/test/passes/dwarf_unit_with_no_abbrevs_noprint.wasm b/test/passes/dwarf_unit_with_no_abbrevs_noprint.wasm Binary files differnew file mode 100644 index 000000000..bf50db775 --- /dev/null +++ b/test/passes/dwarf_unit_with_no_abbrevs_noprint.wasm |