summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin F. Quinn <kevquinn@gentoo.org>2006-12-27 10:01:46 +0000
committerKevin F. Quinn <kevquinn@gentoo.org>2006-12-27 10:01:46 +0000
commit595365479bf2f8df1f7e507f25b1c8b77c9aaf3b (patch)
tree1f6eae2d9f6335862855656cf2f7dda0c1bb9cb8 /hardened
parentAdd 3.4.6 tarball (diff)
downloadkevquinn-595365479bf2f8df1f7e507f25b1c8b77c9aaf3b.tar.gz
kevquinn-595365479bf2f8df1f7e507f25b1c8b77c9aaf3b.tar.bz2
kevquinn-595365479bf2f8df1f7e507f25b1c8b77c9aaf3b.zip
Enable msecure-plt for ppc, ppc64, alpha, sparc
svn path=/; revision=136
Diffstat (limited to 'hardened')
-rw-r--r--hardened/toolchain/branches/gcc-glibc-nopie/eclass/flag-o-matic.eclass2
-rw-r--r--hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass4
2 files changed, 5 insertions, 1 deletions
diff --git a/hardened/toolchain/branches/gcc-glibc-nopie/eclass/flag-o-matic.eclass b/hardened/toolchain/branches/gcc-glibc-nopie/eclass/flag-o-matic.eclass
index 8fd86f7..2bfe95d 100644
--- a/hardened/toolchain/branches/gcc-glibc-nopie/eclass/flag-o-matic.eclass
+++ b/hardened/toolchain/branches/gcc-glibc-nopie/eclass/flag-o-matic.eclass
@@ -112,7 +112,7 @@ setup-allowed-flags() {
-mtls-direct-seg-refs -mno-tls-direct-seg-refs \
-mflat -mno-flat -mno-faster-structs -mfaster-structs \
-m32 -m64 -mabi -mlittle-endian -mbig-endian -EL -EB -fPIC \
- -mlive-g0 -mcmodel -mstack-bias -mno-stack-bias"
+ -mlive-g0 -mcmodel -mstack-bias -mno-stack-bias -msecure-plt"
# C[XX]FLAGS that we are think is ok, but needs testing
# NOTE: currently -Os have issues with gcc3 and K6* arch's
diff --git a/hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass b/hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass
index 9d73035..001d06a 100644
--- a/hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass
+++ b/hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass
@@ -1218,6 +1218,10 @@ gcc-compiler-configure() {
[[ ${GCC_PV:0:1} == "3" ]] && \
confgcc="${confgcc} --enable-sjlj-exceptions"
;;
+ ppc|ppc64|alpha|sparc)
+ tc_version_is_at_least "4.1" &&
+ confgcc="${confgcc} --enable-msecure-plt"
+ ;;
esac
GCC_LANG="c"