[all-commits] [llvm/llvm-project] 3e7bc0: [lld][WebAssembly] Allow relocations against non-l...

Sam Clegg via All-commits all-commits at lists.llvm.org
Wed Apr 28 10:30:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e7bc0da57f17673ac61e5af3b005ffabfb449f3
      https://github.com/llvm/llvm-project/commit/3e7bc0da57f17673ac61e5af3b005ffabfb449f3
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2021-04-28 (Wed, 28 Apr 2021)

  Changed paths:
    A lld/test/wasm/debuginfo-undefined-global.s
    M lld/test/wasm/globals.s
    M lld/wasm/InputFiles.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Allow relocations against non-live global symbols

Just like the in case for function and data symbols this is needed to
support relocations in debug info sections which are allowed contains
relocations against non-live symbols.

The motivating use case is an object file that contains debug info that
references `__stack_pointer` (a local symbol) but does not actually
contain any uses of `__stack_pointer`.

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

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




More information about the All-commits mailing list