Skip to content

Update LLVM and add the safestack attribute to all generated functions. #26612

Closed
@emberian

Description

@emberian

LLVM recently landed: http://reviews.llvm.org/D6094. Clang's documentation on it. We should enable it on static libraries/executables, as the performance costs seem to be non-existent-to-negligible, and it extends defense-in-depth rather well.

cc #15179, as this effectively replaces stack canaries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-codegenArea: Code generationA-securityArea: Security (example: address space layout randomization).C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions