This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Enable return address signing for static ctors
ClosedPublic

Authored by olista01 on Aug 29 2018, 6:02 AM.

Details

Summary

Functions generated by clang and included in the .init_array section (such as static constructors) do not follow the usual code path for adding target-specific function attributes, so we have to add the return address signing attribute here too, as is currently done for the sanitisers.

Diff Detail

Repository
rC Clang

Event Timeline

olista01 created this revision.Aug 29 2018, 6:02 AM
This revision is now accepted and ready to land.Sep 6 2018, 1:56 AM
This revision was automatically updated to reflect the committed changes.