[all-commits] [llvm/llvm-project] 81ad8e: [BOLT] Force frame pointers off for runtimes (#148...

Peter Waller via All-commits all-commits at lists.llvm.org
Mon Jul 14 03:03:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81ad8e6345a4b5d46ca19c95746d6f906fe485cd
      https://github.com/llvm/llvm-project/commit/81ad8e6345a4b5d46ca19c95746d6f906fe485cd
  Author: Peter Waller <peter.waller at arm.com>
  Date:   2025-07-14 (Mon, 14 Jul 2025)

  Changed paths:
    M bolt/runtime/CMakeLists.txt

  Log Message:
  -----------
  [BOLT] Force frame pointers off for runtimes (#148009)

Distributions are making the choice to turn frame pointers on by
default. Nixpkgs recently turned them on, and the method they use to do
so implies that everything is built with them on by default.

https://github.com/NixOS/nixpkgs/pull/399014

Assuming that a well behaved distribution doing this puts
`-fno-omit-frame-pointer` at the beginning of the compiler invocation,
we can still re-enable omission by supplying `-fomit-frame-pointer`
during compilation.

This fixes some segfaults from stack corruption in binaries rewritten by
bolt with `llvm-bolt -instrument`.

See also: #147569
Fixes: #148595



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list