This is an archive of the discontinued LLVM Phabricator instance.

Allow simultaneous safestack and stack-protector attributes
ClosedPublic

Authored by eugenis on Apr 7 2016, 2:42 PM.

Details

Reviewers
pcc
Summary

This is the clang part of D18846.
SafeStack instrumentation pass adds stack protector canaries if both attributes are present on a function.
StackProtector pass will step back if the function has a safestack attribute.

Diff Detail

Repository
rL LLVM

Event Timeline

eugenis updated this revision to Diff 52957.Apr 7 2016, 2:42 PM
eugenis retitled this revision from to Allow simultaneous safestack and stack-protector attributes.
eugenis updated this object.
eugenis added a reviewer: pcc.
eugenis set the repository for this revision to rL LLVM.
eugenis added a subscriber: ed.
pcc accepted this revision.Apr 11 2016, 3:17 PM
pcc edited edge metadata.

LGTM

test/CodeGen/stack-protector.c
26–28

Maybe also make these look like #[[A]] = ...?

This revision is now accepted and ready to land.Apr 11 2016, 3:17 PM
eugenis added inline comments.Apr 11 2016, 3:19 PM
test/CodeGen/stack-protector.c
26–28

definitely!

eugenis updated this revision to Diff 53330.Apr 11 2016, 3:20 PM
eugenis edited edge metadata.
eugenis closed this revision.Apr 11 2016, 3:34 PM

r266005