[all-commits] [llvm/llvm-project] dabbab: [lld][WebAssembly] Apply global relocs before data...

Sam Clegg via All-commits all-commits at lists.llvm.org
Wed Feb 16 14:31:31 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dabbab6861512453aa8f864ef863d31c1d57aa3e
      https://github.com/llvm/llvm-project/commit/dabbab6861512453aa8f864ef863d31c1d57aa3e
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2022-02-16 (Wed, 16 Feb 2022)

  Changed paths:
    M lld/test/wasm/pie.ll
    M lld/wasm/Writer.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Apply global relocs before data relocs

Since the code for apply data relocations can sometimes use
the values stored in he globals, they need to be relocated
before the data relocations can be run.

Fixes: https://github.com/emscripten-core/emscripten/issues/13398

Differential Revision: https://reviews.llvm.org/D119666




More information about the All-commits mailing list