[all-commits] [llvm/llvm-project] 62eeb3: [WebAssembly] fix __stack_pointer being added to ....

Wouter van Oortmerssen via All-commits all-commits at lists.llvm.org
Mon Nov 8 16:30:59 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62eeb3e57edd4ed258c6fbaf9de3ffb0b95f96f2
      https://github.com/llvm/llvm-project/commit/62eeb3e57edd4ed258c6fbaf9de3ffb0b95f96f2
  Author: Wouter van Oortmerssen <aardappel at gmail.com>
  Date:   2021-11-08 (Mon, 08 Nov 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
    M llvm/test/MC/WebAssembly/debug-info.ll
    M llvm/test/MC/WebAssembly/debug-info64.ll

  Log Message:
  -----------
  [WebAssembly] fix __stack_pointer being added to .debug_aranges

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
Differential Revision: https://reviews.llvm.org/D113438




More information about the All-commits mailing list