Skip to content

Automatic Structure Selection #5

@connorkuehl

Description

@connorkuehl

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.

Activity

connorkuehl

connorkuehl commented on Jan 29, 2019

@connorkuehl
Author

Acceptance criteria:

  • Automatic structure selection

added this to the Stretch Goals milestone on Feb 8, 2019
added a commit that references this issue on Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @connorkuehl@tim-pugh@Jafosterja

      Issue actions

        Automatic Structure Selection · Issue #5 · clang-randstruct/llvm-project