@@ -1670,7 +1670,7 @@ pub struct TargetOptions {
16701670 pub static_position_independent_executables : bool ,
16711671 /// Determines if the target always requires using the PLT for indirect
16721672 /// 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 ,
16741674 /// Either partial, full, or off. Full RELRO makes the dynamic linker
16751675 /// resolve all symbols at startup and marks the GOT read-only before
16761676 /// starting the program, preventing overwriting the GOT.
@@ -1992,7 +1992,7 @@ impl Default for TargetOptions {
19921992 no_default_libraries : true ,
19931993 position_independent_executables : false ,
19941994 static_position_independent_executables : false ,
1995- needs_plt : false ,
1995+ plt_by_default : true ,
19961996 relro_level : RelroLevel :: None ,
19971997 pre_link_objects : Default :: default ( ) ,
19981998 post_link_objects : Default :: default ( ) ,
@@ -2665,7 +2665,7 @@ impl Target {
26652665 key ! ( no_default_libraries, bool ) ;
26662666 key ! ( position_independent_executables, bool ) ;
26672667 key ! ( static_position_independent_executables, bool ) ;
2668- key ! ( needs_plt , bool ) ;
2668+ key ! ( plt_by_default , bool ) ;
26692669 key ! ( relro_level, RelroLevel ) ?;
26702670 key ! ( archive_format) ;
26712671 key ! ( allow_asm, bool ) ;
@@ -2921,7 +2921,7 @@ impl ToJson for Target {
29212921 target_option_val ! ( no_default_libraries) ;
29222922 target_option_val ! ( position_independent_executables) ;
29232923 target_option_val ! ( static_position_independent_executables) ;
2924- target_option_val ! ( needs_plt ) ;
2924+ target_option_val ! ( plt_by_default ) ;
29252925 target_option_val ! ( relro_level) ;
29262926 target_option_val ! ( archive_format) ;
29272927 target_option_val ! ( allow_asm) ;
0 commit comments