Skip to content

Commit 609afa6

Browse files
committed
fix RelroLevel
1 parent a72cfe2 commit 609afa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_target/spec/linux_musl_base.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use spec::{LinkerFlavor, TargetOptions};
11+
use spec::{LinkerFlavor, TargetOptions, RelroLevel};
1212

1313
pub fn opts() -> TargetOptions {
1414
let mut base = super::linux_base::opts();
@@ -46,7 +46,7 @@ pub fn opts() -> TargetOptions {
4646
base.has_elf_tls = true;
4747
base.has_rpath = true;
4848
base.position_independent_executables = true;
49-
base.relro_level = true;
49+
base.relro_level = RelroLevel::Full;
5050

5151
base
5252
}

0 commit comments

Comments
 (0)