Skip to content

Commit

Permalink
Disable PLT unconditionally
Browse files Browse the repository at this point in the history
Apply the `NonLazyBind` attribute on every function.
  • Loading branch information
GabrielMajeri committed Sep 26, 2018
1 parent 6ff0b50 commit 3b08b13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_codegen_llvm/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ pub fn from_fn_attrs(

set_frame_pointer_elimination(cx, llfn);
set_probestack(cx, llfn);
Attribute::NonLazyBind.apply_llfn(Function, llfn);

if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::COLD) {
Attribute::Cold.apply_llfn(Function, llfn);
Expand Down

0 comments on commit 3b08b13

Please sign in to comment.