@@ -1670,7 +1670,7 @@ pub struct TargetOptions {
1670
1670
pub static_position_independent_executables : bool ,
1671
1671
/// Determines if the target always requires using the PLT for indirect
1672
1672
/// library calls or not. This controls the default value of the `-Z plt` flag.
1673
- pub needs_plt : bool ,
1673
+ pub plt_by_default : bool ,
1674
1674
/// Either partial, full, or off. Full RELRO makes the dynamic linker
1675
1675
/// resolve all symbols at startup and marks the GOT read-only before
1676
1676
/// starting the program, preventing overwriting the GOT.
@@ -1992,7 +1992,7 @@ impl Default for TargetOptions {
1992
1992
no_default_libraries : true ,
1993
1993
position_independent_executables : false ,
1994
1994
static_position_independent_executables : false ,
1995
- needs_plt : false ,
1995
+ plt_by_default : true ,
1996
1996
relro_level : RelroLevel :: None ,
1997
1997
pre_link_objects : Default :: default ( ) ,
1998
1998
post_link_objects : Default :: default ( ) ,
@@ -2665,7 +2665,7 @@ impl Target {
2665
2665
key ! ( no_default_libraries, bool ) ;
2666
2666
key ! ( position_independent_executables, bool ) ;
2667
2667
key ! ( static_position_independent_executables, bool ) ;
2668
- key ! ( needs_plt , bool ) ;
2668
+ key ! ( plt_by_default , bool ) ;
2669
2669
key ! ( relro_level, RelroLevel ) ?;
2670
2670
key ! ( archive_format) ;
2671
2671
key ! ( allow_asm, bool ) ;
@@ -2921,7 +2921,7 @@ impl ToJson for Target {
2921
2921
target_option_val ! ( no_default_libraries) ;
2922
2922
target_option_val ! ( position_independent_executables) ;
2923
2923
target_option_val ! ( static_position_independent_executables) ;
2924
- target_option_val ! ( needs_plt ) ;
2924
+ target_option_val ! ( plt_by_default ) ;
2925
2925
target_option_val ! ( relro_level) ;
2926
2926
target_option_val ! ( archive_format) ;
2927
2927
target_option_val ! ( allow_asm) ;
0 commit comments