File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -920,7 +920,7 @@ fn link_args(cmd: &mut Command,
920
920
921
921
let used_link_args = sess. cstore . get_used_link_args ( ) . borrow ( ) ;
922
922
923
- if t. options . position_independant_executables {
923
+ if t. options . position_independent_executables {
924
924
let empty_vec = Vec :: new ( ) ;
925
925
let empty_str = String :: new ( ) ;
926
926
let args = sess. opts . cg . link_args . as_ref ( ) . unwrap_or ( & empty_vec) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub fn target() -> Target {
17
17
// linker doesn't like that by default.
18
18
base. pre_link_args . push ( "-Wl,--allow-multiple-definition" . to_string ( ) ) ;
19
19
// FIXME #17437 (and #17448): Android doesn't support position dependant executables anymore.
20
- base. position_independant_executables = false ;
20
+ base. position_independent_executables = false ;
21
21
22
22
Target {
23
23
data_layout : "e-p:32:32:32\
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pub fn opts() -> TargetOptions {
25
25
// follow this flag. Thus, use it before specifying libraries to link to.
26
26
"-Wl,--as-needed" . to_string( ) ,
27
27
) ,
28
- position_independant_executables : true ,
28
+ position_independent_executables : true ,
29
29
.. Default :: default ( )
30
30
}
31
31
}
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ pub struct TargetOptions {
158
158
/// relocation model of position independent code is not changed. This is a requirement to take
159
159
/// advantage of ASLR, as otherwise the functions in the executable are not randomized and can
160
160
/// be used during an exploit of a vulnerability in any code.
161
- pub position_independant_executables : bool ,
161
+ pub position_independent_executables : bool ,
162
162
}
163
163
164
164
impl Default for TargetOptions {
@@ -189,7 +189,7 @@ impl Default for TargetOptions {
189
189
linker_is_gnu : false ,
190
190
has_rpath : false ,
191
191
no_compiler_rt : false ,
192
- position_independant_executables : false ,
192
+ position_independent_executables : false ,
193
193
}
194
194
}
195
195
}
You can’t perform that action at this time.
0 commit comments