This is an archive of the discontinued LLVM Phabricator instance.

Add an option to allow JumpInstrTables to set unnamed_addr and jumptable on all address-taken functions
AbandonedPublic

Authored by tmroeder on Jun 12 2014, 1:19 PM.

Details

Reviewers
None
Summary

This small patch adds a new command flag -jump-table-all and an associated TargetOptions field JumpTableAll, and it modifies JumpInstrTables to add unnamed_addr and jumptable to all address-taken functions if the flag is set.

This is important for applications like my implementation of control-flow integrity, which want to operate over all address-taken functions and not just the ones that happened to have been marked jumptable.

Diff Detail

Event Timeline

tmroeder updated this revision to Diff 10370.Jun 12 2014, 1:19 PM
tmroeder retitled this revision from to Add an option to allow JumpInstrTables to set unnamed_addr and jumptable on all address-taken functions.
tmroeder updated this object.
tmroeder edited the test plan for this revision. (Show Details)
tmroeder set the repository for this revision to rL LLVM.
tmroeder set the repository for this revision to rL LLVM.Jun 12 2014, 1:22 PM
tmroeder added a subscriber: Unknown Object (MLST).
tmroeder abandoned this revision.Jul 10 2014, 2:44 PM