[all-commits] [llvm/llvm-project] 259a11: StackProtector: Use RuntimeLibcalls to query libca...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Jul 15 02:38:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 259a11db5e8f558072a2253c02c775e39e23f05d
      https://github.com/llvm/llvm-project/commit/259a11db5e8f558072a2253c02c775e39e23f05d
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M llvm/include/llvm/IR/RuntimeLibcalls.td
    M llvm/lib/CodeGen/StackProtector.cpp
    M llvm/lib/IR/RuntimeLibcalls.cpp
    A llvm/test/CodeGen/NVPTX/no-stack-protector-libcall-error.ll

  Log Message:
  -----------
  StackProtector: Use RuntimeLibcalls to query libcall names (#147913)

The compiler should not introduce calls to arbitrary strings
that aren't defined in RuntimeLibcalls. Previously OpenBSD was
disabling the default __stack_chk_fail, but there was no record
of the alternative __stack_smash_handler function it emits instead.

This also avoids a random triple check in the pass.



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