diff options
author | Pascal Stumpf <pascal@cvs.openbsd.org> | 2012-08-21 21:12:06 +0000 |
---|---|---|
committer | Pascal Stumpf <pascal@cvs.openbsd.org> | 2012-08-21 21:12:06 +0000 |
commit | 7ea15ba2a6b8ff712f7bba48476ca9dcc3118a75 (patch) | |
tree | fbbddb273efbbb79b1a12098a9d67a3fd60b6692 | |
parent | 2df01b4d2c337e671faa0673092a18b65da4fc8e (diff) |
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@
-rw-r--r-- | lib/libcrypto/perlasm/x86gas.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/perlasm/x86gas.pl b/lib/libcrypto/perlasm/x86gas.pl index 15e17f25d05..9a1cce026ea 100644 --- a/lib/libcrypto/perlasm/x86gas.pl +++ b/lib/libcrypto/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"); |