Skip to content
Unverified Commit 4cb90ca8 authored by Fangrui Song's avatar Fangrui Song Committed by GitHub
Browse files

[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
parent 7c8030e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment