Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 61344 Details for
Bug 96297
flag-o-matic has_hardened/pic/pie/ssp/ssp_all are unreliable. Herewith a proposal to provide a fix, in toolchain-funcs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to add gcc-specs functions to toolchain-funcs.eclass
toolchain-funcs.eclass.diff (text/plain), 1.18 KB, created by
Kevin F. Quinn (RETIRED)
on 2005-06-16 11:23:54 UTC
(
hide
)
Description:
patch to add gcc-specs functions to toolchain-funcs.eclass
Filename:
MIME Type:
Creator:
Kevin F. Quinn (RETIRED)
Created:
2005-06-16 11:23:54 UTC
Size:
1.18 KB
patch
obsolete
>--- /mnt/vols/gentoo/cvs/gentoo-x86/eclass/toolchain-funcs.eclass 2005-05-03 00:42:59.000000000 +0200 >+++ toolchain-funcs.eclass 2005-06-16 09:05:20.000000000 +0200 >@@ -171,3 +171,40 @@ > gcc-micro-version() { > echo "$(gcc-fullversion | cut -f3 -d. | cut -f1 -d-)" > } >+ >+# Returns filename of gcc's active SPECS file >+gcc-specs() { >+ local specs=${GCC_SPECS} >+ if [[ -z ${specs} ]]; then >+ # Get the last mentioned specs file >+ specs=$( $(tc-getCC) -v 2>&1 ) >+ specs=${specs/Configured*} >+ specs=${specs/* \//\/} >+ [[ -z ${specs} ]] && return 1 >+ fi >+ echo ${specs} >+ return 0 >+} >+ >+# Returns true if gcc's active specs build PIEs >+gcc-specs-pie() { >+ local specs >+ specs=$(gcc-specs) || return 1 >+ grep '{!nopie:' ${specs} > /dev/null && return 0 >+ return 1 >+} >+# Returns true if gcc's active specs build with SSP >+gcc-specs-ssp() { >+ local specs >+ specs=$(gcc-specs) || return 1 >+ grep '{!fno-stack-protector:' ${specs} > /dev/null && return 0 >+ return 1 >+} >+# Returns true if gcc's active specs build relro/bindnow >+gcc-specs-hard() { >+ local specs >+ specs=$(gcc-specs) || return 1 >+ grep '{!nonow:' ${specs} > /dev/null && return 0 >+ grep '{!norelro:' ${specs} > /dev/null && return 0 >+ return 1 >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 96297
: 61344 |
61351