[PATCH] D59254: [RFC] Implementation of Clang randstruct

Bill Wendling via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 6 02:17:30 PST 2022


void added a comment.

In D59254#3299150 <https://reviews.llvm.org/D59254#3299150>, @Dan wrote:

> Hi @void, @connorkuehl
>
> Reminding that I also participated in working on this, and back then in 2019 I did manage to compile and boot a working Linux kernel with this feature enabled in Clang. It was a fully built Fedora Linux 5.3 kernel. I remember though that @connorkuehl made various cleanups and refactoring following from my branch, but work stopped at some point and I don't remember at what state we left it it exactly.. :(
>
> This is the Fedora Copr repo with the kernel RPM and all the LLVM/Clang package sources that used to build it: https://copr.fedorainfracloud.org/coprs/alonid/llvm-experimental
>
> As for LLVM source, the git branch which was used back then is `randstruct-demo-fc30` in my Github fork - https://github.com/da-x/llvm-project/

Thanks, @Dan and @connorkuehl!

I cherry-picked Connor's changes to top-of-tree LLVM. It wasn't too bad. I'll see how it works with the current Linux kernel. @jfb mentioned some really good issues having to do with C++. Because of how horrible it would be to support C++, I propose restricting this feature to C (probably a decision that's already been made).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59254/new/

https://reviews.llvm.org/D59254



More information about the cfe-commits mailing list