[gnutls-devel] GnuTLS | wrong text relocations on i386 due to non-PIC assembly (#818)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Sat Aug 10 12:01:37 CEST 2019
Andreas Metzler commented on a discussion: https://gitlab.com/gnutls/gnutls/issues/818#note_202253625
Just did. Regeneration generates the broken file:
line 2998 in devel/perlasm/aesni-x86.pl
&picmeup("ebp","OPENSSL_ia32cap_P","ebx",&label("key_const"));
is converted by ```CC=gcc perl devel/perlasm/aesni-x86.pl elf lib/accelerated/x86/elf/aesni-x86.s.tmp```
to
```
leal OPENSSL_ia32cap_P,%ebp
```
instead of
```
leal OPENSSL_ia32cap_P-.Lkey_const(%ebx),%ebp
```
It is the only occurence of picmeup in devel/perlasm/aesni-x86.pl.
Debian's openssl packages includes a patch to the asm code, but it does not seem to make a difference.
https://salsa.debian.org/debian/openssl/blob/debian/unstable/debian/patches/pic.patch
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/818#note_202253625
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190810/cec8e37c/attachment.html>
More information about the Gnutls-devel
mailing list