[all-commits] [llvm/llvm-project] 99e53c: [llvm][StackProtector] Add noreturn to __stack_chk...

PiJoules via All-commits all-commits at lists.llvm.org
Mon Jun 16 15:48:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 99e53cb4139eda491f97cb33ee42ea424d352200
      https://github.com/llvm/llvm-project/commit/99e53cb4139eda491f97cb33ee42ea424d352200
  Author: PiJoules <6019989+PiJoules at users.noreply.github.com>
  Date:   2025-06-16 (Mon, 16 Jun 2025)

  Changed paths:
    M llvm/lib/CodeGen/StackProtector.cpp
    A llvm/test/Transforms/StackProtector/cross-dso-cfi-stack-chk-fail.ll
    A llvm/test/Transforms/StackProtector/stack-chk-fail-alias.ll

  Log Message:
  -----------
  [llvm][StackProtector] Add noreturn to __stack_chk_fail call (#143976)

It's possible for __stack_chk_fail to be an alias when using CrossDSOCFI
since it will make a jump table entry for this function and replace it
with an alias. StackProtector can crash since it always expects this to
be a regular function. Instead add the noreturn attribute to the call.



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