[all-commits] [llvm/llvm-project] 4cb90c: [Thumb, ELF] Fix access to dso_preemptable __stack_...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Jan 22 13:16:43 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4cb90ca8f8bfbe8dc938a1b8b821d98640cbab4c
https://github.com/llvm/llvm-project/commit/4cb90ca8f8bfbe8dc938a1b8b821d98640cbab4c
Author: Fangrui Song <i at maskray.me>
Date: 2024-01-22 (Mon, 22 Jan 2024)
Changed paths:
M llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
M llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
M llvm/test/CodeGen/ARM/stack-guard-elf.ll
Log Message:
-----------
[Thumb,ELF] Fix access to dso_preemptable __stack_chk_guard with static relocation model (#78950)
PR #70014 fixes A32 to use GOT for dso_preemptable `__stack_chk_guard`
with static relocation model (e.g. -fPIE/-fPIC LTO compiles with -no-pie
linking).
This patch fixes such `__stack_chk_guard` access for Thumb1 and Thumb2.
Note: `t2LDRLIT_ga_pcrel` is only for ELF. mingw needs
`.refptr.__stack_chk_guard` (https://reviews.llvm.org/D92738).
Fix #64999
More information about the All-commits
mailing list