forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Is your feature request related to a problem? Please describe.
One of our stretch goals is to allow automatic structure selection with manual opt-out through an attribute like __no_randomize_layout
Describe the solution you'd like
When the Clang compiler asks our plugin if we'd like to layout the structure, we can perform a series of checks to determine if this structure is a candidate for automatic selection. If the structure has the attribute __no_randomize_layout
, we disqualify it. If not, and the structure is very simple, we will randomize its layout.
An example of a very simple structure would be a structure containing only function pointers. They are all the same size.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
connorkuehl commentedon Jan 29, 2019
Acceptance criteria:
Automatic structure selection
Disabled with
__no_randomize_layout
C99 Designated Initializers support. llvm/llvm-project#97Rollback of rL355585.
Fix lookup of symbols at the same address with no size vs. size
FileCheck [8/12]: Define numeric var from expr
FileCheck [8/12]: Define numeric var from expr