From: deraadt Date: Wed, 28 Jun 2017 13:34:50 +0000 (+0000) Subject: .init stub creation doesn't need a jmp + .align to reach a branch target, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=794f0c6802f4f4b7751d11683c2c9cd3ce2e237a;p=openbsd .init stub creation doesn't need a jmp + .align to reach a branch target, just fall into the code. The .align created a FILL zone in the .init section, which on i386 was filled with a NOP-sled, something we want to get away from. discussed with kettenis and tom --- diff --git a/lib/libcrypto/perlasm/x86gas.pl b/lib/libcrypto/perlasm/x86gas.pl index 84d24edbbdb..c21cda9a6ad 100644 --- a/lib/libcrypto/perlasm/x86gas.pl +++ b/lib/libcrypto/perlasm/x86gas.pl @@ -221,9 +221,6 @@ sub ::initseg PIC_PROLOGUE call PIC_PLT($f) PIC_EPILOGUE - jmp .Linitalign -.align $align -.Linitalign: ___ } elsif ($::android) { $initseg.=<<___;