diff options
author | 2012-08-21 21:12:05 +0000 | |
---|---|---|
committer | 2012-08-21 21:12:05 +0000 | |
commit | 280e8b2c600c3a6346916688f6422a9574c884f2 (patch) | |
tree | 042737e7e7706eca0810bbcd8b6f3656ac5e1546 /lib/libssl/src | |
parent | Allow smtpd to work as a backup MX, relaying only to MXs with higher (diff) | |
download | wireguard-openbsd-280e8b2c600c3a6346916688f6422a9574c884f2.tar.xz wireguard-openbsd-280e8b2c600c3a6346916688f6422a9574c884f2.zip |
When deciding whether we're PIC in a (generated) asm file, check for both PIC
and __PIC__ defines. Makes things easier for PIE.
ok djm@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/crypto/perlasm/x86gas.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/perlasm/x86gas.pl b/lib/libssl/src/crypto/perlasm/x86gas.pl index 15e17f25d05..9a1cce026ea 100644 --- a/lib/libssl/src/crypto/perlasm/x86gas.pl +++ b/lib/libssl/src/crypto/perlasm/x86gas.pl @@ -181,7 +181,7 @@ sub ::picmeup { my($dst,$sym,$base,$reflabel)=@_; if ($::openbsd) - { &::emitraw("#ifdef PIC"); + { &::emitraw("#if defined(PIC) || defined(__PIC__)"); &::emitraw("PIC_PROLOGUE"); &::mov($dst, &::DWP("PIC_GOT($sym)")); &::emitraw("PIC_EPILOGUE"); |