This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] fix __stack_pointer being added to .debug_aranges
ClosedPublic

Authored by aardappel on Nov 8 2021, 3:31 PM.

Details

Summary

When emitting a reloc for the Wasm global __stack_pointer, it was inadvertedly added to the symbols used for generating aranges, which caused some aranges to use it as the end symbol in a symbol diff, which caused a reloc for it to be emitted, which then caused an assert in wasm64 since we have no 64-bit relocs for Wasm globals.
Fixes: https://bugs.llvm.org/show_bug.cgi?id=52376

Diff Detail

Event Timeline

aardappel created this revision.Nov 8 2021, 3:31 PM
aardappel requested review of this revision.Nov 8 2021, 3:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2021, 3:31 PM
dschuff accepted this revision.Nov 8 2021, 3:36 PM
This revision is now accepted and ready to land.Nov 8 2021, 3:36 PM
aardappel closed this revision.Nov 8 2021, 4:16 PM

This has landed, not sure why Phabricator doesn't notice..

This revision was landed with ongoing or failed builds.Nov 8 2021, 4:30 PM