From 794f0c6802f4f4b7751d11683c2c9cd3ce2e237a Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 28 Jun 2017 13:34:50 +0000 Subject: [PATCH] .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 --- lib/libcrypto/perlasm/x86gas.pl | 3 --- 1 file changed, 3 deletions(-) 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.=<<___; -- 2.20.1