Am 28.04.2015 um 14:03 schrieb Florian Weimer:
On 04/27/2015 09:28 PM, Reindl Harald wrote:

why are shared libraries with -flto no longer have stack protection?

You need to provide details how you perform the final link, otherwise
this question is impossible to answer

by just add "-flto" at the end of that 4 lines in the SPEC

export CFLAGS="%{optflags} -O3 -fPIC -fPIE -fno-strict-aliasing -funroll-loops -funswitch-loops -Wno-pointer-sign"

export CXXFLAGS="%{optflags} -O3 -fPIC -fPIE -fno-strict-aliasing -funroll-loops -funswitch-loops -Wno-pointer-sign"

export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack -pie %{optflags} -O3 -fno-strict-aliasing -funroll-loops -funswitch-loops -Wno-pointer-sign"

export SH_LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack -pie %{optflags} -O3 -fno-strict-aliasing -funroll-loops -funswitch-loops -Wno-pointer-sign"

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to