File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -695,6 +695,10 @@ def build_bootstrap(self):
695
695
if self .get_toml ("deny-warnings" , "rust" ) != "false" :
696
696
env ["RUSTFLAGS" ] += " -Dwarnings"
697
697
698
+ # Fix hit the limit of 8K GOT entries per single object file
699
+ if self .build_triple ().startswith ('mips' ):
700
+ env ["RUSTFLAGS" ] += " -Cllvm-args=-mxgot"
701
+
698
702
env ["PATH" ] = os .path .join (self .bin_root (), "bin" ) + \
699
703
os .pathsep + env ["PATH" ]
700
704
if not os .path .isfile (self .cargo ()):
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ mod imp {
52
52
let err = errno ( ) as libc:: c_int ;
53
53
if err == libc:: EINTR {
54
54
continue ;
55
- } else if err == libc:: ENOSYS || err == libc:: EPERM {
55
+ } else if err == libc:: ENOSYS || err == libc:: EPERM || err == libc :: EINVAL {
56
56
// Fall back to reading /dev/urandom if `getrandom` is not
57
57
// supported on the current kernel.
58
58
//
You can’t perform that action at this time.
0 commit comments