From 5c385fc2be216c86a43ca2ac211e3e9d834248bf Mon Sep 17 00:00:00 2001 From: otto <> Date: Fri, 19 Sep 2008 06:09:01 +0000 Subject: fix some cause of bad TEXTREL on i386 and amd64 - global function calls in .init sections (diff makes them via PLT) - calls to global functions in aes-586.S (made static or local) - global variable accesses in rc4-x86_64.S (now made via GOT) from djm@large; ok miod@ --- src/lib/libcrypto/rc4/asm/rc4-x86_64.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/rc4') diff --git a/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl b/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl index 2d47320485..92c52f3433 100755 --- a/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl +++ b/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl @@ -269,8 +269,7 @@ RC4_set_key: xor $ido,$ido xor %r10,%r10 xor %r11,%r11 - - mov OPENSSL_ia32cap_P(%rip),$idx#d + mov PIC_GOT(OPENSSL_ia32cap_P),$idx#d bt \$20,$idx#d jnc .Lw1stloop bt \$30,$idx#d @@ -338,7 +337,7 @@ RC4_set_key: RC4_options: .picmeup %rax lea .Lopts-.(%rax),%rax - mov OPENSSL_ia32cap_P(%rip),%edx + mov PIC_GOT(OPENSSL_ia32cap_P),%edx bt \$20,%edx jnc .Ldone add \$12,%rax -- cgit v1.2.3-55-g6feb