diff options
author | deraadt <> | 2017-06-28 13:34:50 +0000 |
---|---|---|
committer | deraadt <> | 2017-06-28 13:34:50 +0000 |
commit | 77a9e108b735bfd730d56983245c296606a34e8e (patch) | |
tree | 79b954b389e14daae636d95ac25de2a4e3590c1d | |
parent | 90062b095bce6ad54ec2645782fc8fb9c66c8d1a (diff) | |
download | openbsd-77a9e108b735bfd730d56983245c296606a34e8e.tar.gz openbsd-77a9e108b735bfd730d56983245c296606a34e8e.tar.bz2 openbsd-77a9e108b735bfd730d56983245c296606a34e8e.zip |
.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
-rw-r--r-- | src/lib/libcrypto/perlasm/x86gas.pl | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/libcrypto/perlasm/x86gas.pl b/src/lib/libcrypto/perlasm/x86gas.pl index 84d24edbbd..c21cda9a6a 100644 --- a/src/lib/libcrypto/perlasm/x86gas.pl +++ b/src/lib/libcrypto/perlasm/x86gas.pl | |||
@@ -221,9 +221,6 @@ sub ::initseg | |||
221 | PIC_PROLOGUE | 221 | PIC_PROLOGUE |
222 | call PIC_PLT($f) | 222 | call PIC_PLT($f) |
223 | PIC_EPILOGUE | 223 | PIC_EPILOGUE |
224 | jmp .Linitalign | ||
225 | .align $align | ||
226 | .Linitalign: | ||
227 | ___ | 224 | ___ |
228 | } elsif ($::android) | 225 | } elsif ($::android) |
229 | { $initseg.=<<___; | 226 | { $initseg.=<<___; |