diff options
author | Alon Zakai <azakai@google.com> | 2020-01-14 08:51:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 08:51:18 -0800 |
commit | a7be271b6371c5968b77b4227bd3159db558951f (patch) | |
tree | 8dfe4265f973e985c3c8097a0af38cae7dae2a18 /test/binaryen.js | |
parent | 58d973cb15d2c1d53d16a5837a537ee0ebe50e27 (diff) | |
download | binaryen-a7be271b6371c5968b77b4227bd3159db558951f.tar.gz binaryen-a7be271b6371c5968b77b4227bd3159db558951f.tar.bz2 binaryen-a7be271b6371c5968b77b4227bd3159db558951f.zip |
Omit DWARF debug line ranges starting with 0 (#2587)
Check if an entry starts a new range of addresses. Each range is a set of
related addresses, where in particular, if the first has been zeroed out
by the linker, we must omit the entire range. If we do not, then the
initial range is 0 and the others are offsets relative to it, which will
look like random addresses, perhaps into the middle of instructions, and
perhaps that happen to collide with real ones (a debugger would ignore
those, so we must too; it's easier and better to simply omit them).
See https://bugs.llvm.org/show_bug.cgi?id=44516#c2
Diffstat (limited to 'test/binaryen.js')
0 files changed, 0 insertions, 0 deletions