From Fedora Project Wiki
Regressions introduced by the “Harden All Packages” Fedora Change
This page collects some of the regressions introduced by Changes/Harden_All_Packages. This page primarily covers the Fedora 19/20 state of affairs, not the Fedora 23 toolchain state, when the change was actually implemented.
Package-specific issues
These issues have to be fixed in packages themselves.
- Lack of position-independent code. (Affects PIE only.) These issues result in errors from the static linker (due to unsupported relocations). On architectures which support text relocations, NX/XD/execmod/W^X enforcement by SELinux can fail at run time.
- If source code is not compiled as position-independent because the
CFLAGS
is not passed through, the package build system needs to be updated. - Hand-written assembly must be ported to be position-independent.
- If source code is not compiled as position-independent because the
- Problems with enabling position-independent code due to register allocation. (Affects PIE only.)
- On i686 with
-fPIE
or-fPIC
,%ebx
is a hard register reserved for the GOT pointer. This means that it cannot be used in GCC extendedasm
constraints. This can lead to register allocation failures at compile time. - The increased register pressure changes register allocation, altering the way GCC extended
asm
constraints are used. If these constraints are incorrect, builds succeed, but applications may fail at run time. (Example: a"g"
-constrained variable now references an on-stack variable using a SP-relative memory operand, where previously, a register was used, but theasm
statement temporarily modifies the stack pointer, resulting in an incorrect offset being applied.)
- On i686 with