summaryrefslogtreecommitdiffstats
path: root/crypto/perlasm
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2003-01-09 16:06:09 +0000
committerAndy Polyakov <appro@openssl.org>2003-01-09 16:06:09 +0000
commit9d1b5614f9e34c5737f36cc68237a8c2361032d5 (patch)
treec6888c6697c643a2446ba1d2b7416ce4a69f515b /crypto/perlasm
parent416b19c6fc07e607618a344237e25f79c0fe987a (diff)
At least OpenBSD implements PIC in the same way ELF does.
Diffstat (limited to 'crypto/perlasm')
-rw-r--r--crypto/perlasm/x86unix.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/perlasm/x86unix.pl b/crypto/perlasm/x86unix.pl
index 6652eb8a7c..23a389f39e 100644
--- a/crypto/perlasm/x86unix.pl
+++ b/crypto/perlasm/x86unix.pl
@@ -566,13 +566,13 @@ sub main'picmeup
___
push(@out,$tmp);
}
- elsif ($main'pic && $main'elf)
+ elsif ($main'pic && ($main'elf || $main'aout))
{
push(@out,"\t.align\t8\n");
&main'call(&main'label("PIC_me_up"));
&main'set_label("PIC_me_up");
&main'blindpop($dst);
- &main'add($dst,"\$_GLOBAL_OFFSET_TABLE_+[.-" .
+ &main'add($dst,"\$$under"."_GLOBAL_OFFSET_TABLE_+[.-".
&main'label("PIC_me_up") . "]");
&main'mov($dst,&main'DWP($sym."\@GOT",$dst));
}