projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
416b19c
)
At least OpenBSD implements PIC in the same way ELF does.
author
Andy Polyakov
<appro@openssl.org>
Thu, 9 Jan 2003 16:06:09 +0000
(16:06 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Thu, 9 Jan 2003 16:06:09 +0000
(16:06 +0000)
crypto/perlasm/x86unix.pl
patch
|
blob
|
history
diff --git
a/crypto/perlasm/x86unix.pl
b/crypto/perlasm/x86unix.pl
index 6652eb8a7cbe80479caa4698b9c55587b929d1a2..23a389f39e57e0abf1b3820251d04bbfbafe4e5f 100644
(file)
--- 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));
}