[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 14:38:55 CEST 2019

Andreas Metzler commented on a discussion: https://gitlab.com/gnutls/gnutls/issues/818#note_202265159

Afaict simply changing the cfg.mk a la
lib/accelerated/x86/elf/%.s: devel/perlasm/%.pl .submodule.stamp 
	CC=gcc perl $< elf {+-fPIC+} $@.tmp
	cat $<.license $@.tmp > $@ && rm -f $@.tmp
will not work since not all .s files are buildable when specifying -fPIC to the perl script. The openssl  build.info passes -fPIC selectively:
GENERATE[ghash-x86.s]=asm/ghash-x86.pl \
GENERATE[ghash-x86_64.s]=asm/ghash-x86_64.pl $(PERLASM_SCHEME)

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/818#note_202265159
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/5dfdafbb/attachment.html>

More information about the Gnutls-devel mailing list