[all-commits] [llvm/llvm-project] 356852: [libc] fix issues around stack protector (#74567)

Schrodinger ZHU Yifan via All-commits all-commits at lists.llvm.org
Tue Dec 12 12:32:05 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3568521e3d2d09d12bd0c476d0376de165b19178
      https://github.com/llvm/llvm-project/commit/3568521e3d2d09d12bd0c476d0376de165b19178
  Author: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
  Date:   2023-12-12 (Tue, 12 Dec 2023)

  Changed paths:
    M libc/src/__support/OSUtil/linux/quick_exit.h
    M libc/startup/linux/aarch64/start.cpp
    M libc/startup/linux/riscv/start.cpp
    M libc/startup/linux/x86_64/CMakeLists.txt
    M libc/startup/linux/x86_64/start.cpp

  Log Message:
  -----------
  [libc] fix issues around stack protector (#74567)

If a function is declared with stack-protector, the compiler may try to
load the TLS. However, inside certain runtime functions, TLS may not be
available. This patch disables stack protectors for such routines to fix
the problem.

Closes #74487.




More information about the All-commits mailing list