summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/perlasm/x86gas.pl2
-rw-r--r--src/lib/libssl/src/crypto/perlasm/x86gas.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/perlasm/x86gas.pl b/src/lib/libcrypto/perlasm/x86gas.pl
index 15e17f25d0..9a1cce026e 100644
--- a/src/lib/libcrypto/perlasm/x86gas.pl
+++ b/src/lib/libcrypto/perlasm/x86gas.pl
@@ -181,7 +181,7 @@ sub ::picmeup
181{ my($dst,$sym,$base,$reflabel)=@_; 181{ my($dst,$sym,$base,$reflabel)=@_;
182 182
183 if ($::openbsd) 183 if ($::openbsd)
184 { &::emitraw("#ifdef PIC"); 184 { &::emitraw("#if defined(PIC) || defined(__PIC__)");
185 &::emitraw("PIC_PROLOGUE"); 185 &::emitraw("PIC_PROLOGUE");
186 &::mov($dst, &::DWP("PIC_GOT($sym)")); 186 &::mov($dst, &::DWP("PIC_GOT($sym)"));
187 &::emitraw("PIC_EPILOGUE"); 187 &::emitraw("PIC_EPILOGUE");
diff --git a/src/lib/libssl/src/crypto/perlasm/x86gas.pl b/src/lib/libssl/src/crypto/perlasm/x86gas.pl
index 15e17f25d0..9a1cce026e 100644
--- a/src/lib/libssl/src/crypto/perlasm/x86gas.pl
+++ b/src/lib/libssl/src/crypto/perlasm/x86gas.pl
@@ -181,7 +181,7 @@ sub ::picmeup
181{ my($dst,$sym,$base,$reflabel)=@_; 181{ my($dst,$sym,$base,$reflabel)=@_;
182 182
183 if ($::openbsd) 183 if ($::openbsd)
184 { &::emitraw("#ifdef PIC"); 184 { &::emitraw("#if defined(PIC) || defined(__PIC__)");
185 &::emitraw("PIC_PROLOGUE"); 185 &::emitraw("PIC_PROLOGUE");
186 &::mov($dst, &::DWP("PIC_GOT($sym)")); 186 &::mov($dst, &::DWP("PIC_GOT($sym)"));
187 &::emitraw("PIC_EPILOGUE"); 187 &::emitraw("PIC_EPILOGUE");