https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116457

            Bug ID: 116457
           Summary: Add -frandomize-layout-seed and
                    -frandomize-layout-seed-file
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: arsen at gcc dot gnu.org, david.faust at oracle dot com,
                    jemarch at gcc dot gnu.org, kees at outflux dot net,
                    qing.zhao at oracle dot com
  Target Milestone: ---

The Linux kernel uses a GCC plugin ("randstruct") to randomise struct layout to
make certain attacks harder.

Clang implemented -frandomize-layout-seed and -frandomize-layout-seed-file
instead.

Implementing these in GCC would allow killing the use of another plugin. The
main issue with the plugin approach is the awkward interaction with generation
of debug info (PR84052).

Reply via email to