My question was answered by bjorn3 on the rust forum: https://users.rust-lang.org/t/how-to-force-inlining-or-avoid-calls-to-the-plt/123173