summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <>2017-06-28 13:34:50 +0000
committerderaadt <>2017-06-28 13:34:50 +0000
commit77a9e108b735bfd730d56983245c296606a34e8e (patch)
tree79b954b389e14daae636d95ac25de2a4e3590c1d
parent90062b095bce6ad54ec2645782fc8fb9c66c8d1a (diff)
downloadopenbsd-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.pl3
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
221PIC_PROLOGUE 221PIC_PROLOGUE
222 call PIC_PLT($f) 222 call PIC_PLT($f)
223PIC_EPILOGUE 223PIC_EPILOGUE
224 jmp .Linitalign
225.align $align
226.Linitalign:
227___ 224___
228 } elsif ($::android) 225 } elsif ($::android)
229 { $initseg.=<<___; 226 { $initseg.=<<___;