pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gnutls vs. PAX MPROTECT on i386-current?

On Tue, 29 Nov 2016, Joerg Sonnenberger wrote:

> > > suspect some badly written assembly ignoring the PIC requirements, but
> > > it would be good to make sure... -Wl,--warn-shared-textrel can help.
> It's a linker flag, it is needed while linking libgnutls.

Quite.  Appending it to LDFLAGS eventually produced:

ld: warning: dynamic relocation to `_gnutls_x86_cpuid_s' in readonly section `.text'
ld: accelerated/.libs/libaccelerated.a(aesni-x86.o): warning: relocation against `_gnutls_x86_cpuid_s' in readonly section `.text'
ld: warning: creating a DT_TEXTREL in a shared object.

|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

Home | Main Index | Thread Index | Old Index