Re: why does -flto remove stack-protector

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

 





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@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux