void added a comment.

In D123544#3446285 <https://reviews.llvm.org/D123544#3446285>, @lebedev.ri 
wrote:

> Does this not lead to non-deterministic/non-reproducible builds?

It's deterministic based on the randomization seed.

> I do not understand why this feature must be inflicted onto everyone.

A developer must mark structures with the `randomize_layout` attribute and 
supply a randomization seed for the randstruct feature to be enabled. It's only 
when a randomization seed is supplied that it'll randomize structures 
consisting of only function pointers (which happens a lot in Linux). And you're 
able to opt-out of such a thing.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123544

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to