Fix logic of picmeup() to only produce one set of statements on OpenBSD; this
authormiod <miod@openbsd.org>
Mon, 30 Jan 2023 19:26:16 +0000 (19:26 +0000)
committermiod <miod@openbsd.org>
Mon, 30 Jan 2023 19:26:16 +0000 (19:26 +0000)
got accidentally lost in 1.4.

lib/libcrypto/perlasm/x86gas.pl

index c21cda9..ca644ba 100644 (file)
@@ -189,7 +189,7 @@ sub ::picmeup
        &::lea($dst,&::DWP($sym));
        &::emitraw("#endif /* PIC */");
     }
-    if (($::pic && ($::elf || $::aout)) || $::macosx)
+    elsif (($::pic && ($::elf || $::aout)) || $::macosx)
     {  if (!defined($base))
        {   &::call(&::label("PIC_me_up"));
            &::set_label("PIC_me_up");