LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 49209 - [X86] support for -mstack-protector-guard-symbol=
Summary: [X86] support for -mstack-protector-guard-symbol=
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: trunk
Hardware: PC All
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks: 4068
  Show dependency tree
 
Reported: 2021-02-16 10:46 PST by Nick Desaulniers
Modified: 2021-05-17 12:00 PDT (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Desaulniers 2021-02-16 10:46:59 PST
via https://lore.kernel.org/lkml/c0ff7dba14041c7e5d1cae5d4df052f03759bef3.1613243844.git.luto@kernel.org/, the Linux kernel is looking to use the pair of flags:

-mstack-protector-guard-reg=fs -mstack-protector-guard-symbol=__stack_chk_guard

for 32b x86 kernels.  It seems that clang does not yet support

-mstack-protector-guard-symbol=__stack_chk_guard
Comment 1 Nick Desaulniers 2021-05-17 12:00:20 PDT
See also: https://bugs.llvm.org/show_bug.cgi?id=47341.