about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-11-18 15:46:23 +0100
committerGitHub <noreply@github.com>2020-11-18 15:46:23 +0100
commit61134aa54cd70f6d6a540f9ce221310456b683ce (patch)
tree214a33171a17877dc612341b1855441b3cc6907b /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentc7e9029b8064a48a983040937bae056617729980 (diff)
parentcd22381daa7f23bf20a739ac35c95ff77921d9a0 (diff)
downloadrust-61134aa54cd70f6d6a540f9ce221310456b683ce.tar.gz
rust-61134aa54cd70f6d6a540f9ce221310456b683ce.zip
Rollup merge of #78785 - cuviper:weak-getrandom, r=m-ou-se
linux: try to use libc getrandom to allow interposition

We'll try to use a weak `getrandom` symbol first, because that allows
things like `LD_PRELOAD` interposition. For example, perf measurements
might want to disable randomness to get reproducible results. If the
weak symbol is not found, we fall back to a raw `SYS_getrandom` call.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions