Lines 155-169
done
Link Here
|
155 |
|
155 |
|
156 |
eblit-src_unpack-pre() { |
156 |
eblit-src_unpack-pre() { |
157 |
[[ -n ${GCC_BOOTSTRAP_VER} ]] && use multilib && unpack gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2 |
157 |
[[ -n ${GCC_BOOTSTRAP_VER} ]] && use multilib && unpack gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2 |
|
|
158 |
# Bug 558636 we don't applY the pie works around for 2.22. It shoud have the support. |
159 |
GLIBC_PATCH_EXCLUDE+=" 00_all_0002-workaround-crash-when-handling-signals-in-static-PIE.patch" |
160 |
GLIBC_PATCH_EXCLUDE+=" 00_all_0009-arm-fix-PIC-vs-SHARED-typos.patch" |
161 |
GLIBC_PATCH_EXCLUDE+=" 00_all_0012-disable-PIE-when-checking-for-PIC-default.patch" |
158 |
} |
162 |
} |
159 |
|
163 |
|
160 |
eblit-src_prepare-post() { |
164 |
eblit-src_prepare-post() { |
161 |
cd "${S}" |
165 |
cd "${S}" |
162 |
|
166 |
|
163 |
if use hardened ; then |
167 |
if use hardened ; then |
164 |
einfo "Patching to get working PIE binaries on PIE (hardened) platforms" |
168 |
# Bug 558636 we don't applY the pie works around for 2.22. It shoud have the support. |
165 |
gcc-specs-pie && epatch "${FILESDIR}"/2.17/glibc-2.17-hardened-pie.patch |
169 |
# einfo "Patching to get working PIE binaries on PIE (hardened) platforms" |
166 |
epatch "${FILESDIR}"/2.20/glibc-2.20-hardened-inittls-nosysenter.patch |
170 |
# gcc-specs-pie && epatch "${FILESDIR}"/2.17/glibc-2.17-hardened-pie.patch |
|
|
171 |
# epatch "${FILESDIR}"/2.20/glibc-2.20-hardened-inittls-nosysenter.patch |
167 |
|
172 |
|
168 |
# We don't enable these for non-hardened as the output is very terse -- |
173 |
# We don't enable these for non-hardened as the output is very terse -- |
169 |
# it only states that a crash happened. The default upstream behavior |
174 |
# it only states that a crash happened. The default upstream behavior |