From: miod Date: Mon, 30 Jan 2023 19:26:16 +0000 (+0000) Subject: Fix logic of picmeup() to only produce one set of statements on OpenBSD; this X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b9802f885448033e47d369b8aad07b473e26b034;p=openbsd Fix logic of picmeup() to only produce one set of statements on OpenBSD; this got accidentally lost in 1.4. --- diff --git a/lib/libcrypto/perlasm/x86gas.pl b/lib/libcrypto/perlasm/x86gas.pl index c21cda9a6ad..ca644ba5534 100644 --- a/lib/libcrypto/perlasm/x86gas.pl +++ b/lib/libcrypto/perlasm/x86gas.pl @@ -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");