[all-commits] [llvm/llvm-project] 6912ed: [lld][WebAssembly] Don't allow `--global-base` to ...

Sam Clegg via All-commits all-commits at lists.llvm.org
Tue Oct 18 17:20:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6912ed7b8fe6db32850b71dce209a287fc4253f6
      https://github.com/llvm/llvm-project/commit/6912ed7b8fe6db32850b71dce209a287fc4253f6
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M lld/test/wasm/global-base.test
    M lld/wasm/Driver.cpp
    M lld/wasm/Writer.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Don't allow `--global-base` to be specified in -share/-pie or --relocatable modes

Add some checks around this combination of flags

Also, honor `--global-base` when specified in `--stack-first` mode
rather than ignoring it.  But error out if the specified base preseeds
the end of the stack.

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




More information about the All-commits mailing list