https://bugs.llvm.org/show_bug.cgi?id=47341
Bug ID: 47341
Summary: Support -mstack-protector-guard=sysreg for arm64 and
riscv
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: keesc...@chromium.org
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
The Linux kernel uses this for having a per-thread stack canary. Implementing
this for both arm64 and riscv is desired.
For example, gcc's arm64 support is used like this in the kernel:
-mstack-protector-guard=sysreg
-mstack-protector-guard-reg=sp_el0
-mstack-protector-guard-offset=0
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a1213fa7432778b71a1c0166bf56660a3aab030
Here are discussions on the start of riscv support:
https://lore.kernel.org/lkml/cajf2gttr_enhgrmjqnbgbhec8y4d3ysqaresvwhub1ykemk...@mail.gmail.com/
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs