Also added general wasm64 DWARF test.
Also added asserts for unsupported reloc combinations that triggered this bug.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM for now.
As I said, I have a feeling we may need to do something more to get the data address space right. But this is fine to avoid crashing.
llvm/test/MC/WebAssembly/dwarfdump64.ll | ||
---|---|---|
2 | It might make sense to use the dwarfdump argument --show-form for this test, then we can see which attributes have addr vs other forms. | |
39 | I have a feeling that this is probably wrong (i.e. it's 4 instead of 8). Maybe we should put a TODO here. |
llvm/test/MC/WebAssembly/dwarfdump64.ll | ||
---|---|---|
39 | (I mean that it's using a 4-byte address instead of an 8-byte. not that the value is wrong) |
The paths in this test only worked on Windows. A fix has been pushed in b093eba08478db387fc2765dee1e1bf2d64fcf68
It might make sense to use the dwarfdump argument --show-form for this test, then we can see which attributes have addr vs other forms.