--Wl,-z,relro in LDFLAGS required?/Inconsistency when not using %configure

Reindl Harald h.reindl at thelounge.net
Tue Oct 22 14:52:34 UTC 2013


Am 22.10.2013 16:47, schrieb Adam Jackson:
> On Sun, 2013-10-20 at 23:42 +0200, Till Maas wrote:
>> https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Compiler_flags
>>
>> mentions only %optflags to be required for packages but I noticed that
>> %configure sets LDFLAGS to a value different than %optflags:
> 
> As noted there does exist an rpm variable for this.  However at least
> the relro part of it seems to be unnecessary with current binutils:
> 
> %if 0%{?fedora} >= 18
> * Tue Mar 06 2012 Nick Clifton <nickc at redhat.com> - 2.22.52.0.1-7
> - Enable -zrelro by default. (#621983 #807831)
> %endif

this is only *partial* RELRO
Full RELRO: -Wl,-z,now -Wl,-z,relro

http://tk-blog.blogspot.co.at/2009/02/relro-not-so-well-known-memory.html



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20131022/755bfe90/attachment.sig>


More information about the devel mailing list