Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 57511 Details for
Bug 90391
flag-o-matic.eclass, has_pic() returns 0 on non hardened box
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixip just has_pic, add has_ssp_all and header comments
flago-haspicssp.patch (text/plain), 1.46 KB, created by
Kevin F. Quinn (RETIRED)
on 2005-04-28 12:32:24 UTC
(
hide
)
Description:
Fixip just has_pic, add has_ssp_all and header comments
Filename:
MIME Type:
Creator:
Kevin F. Quinn (RETIRED)
Created:
2005-04-28 12:32:24 UTC
Size:
1.46 KB
patch
obsolete
>--- flag-o-matic.eclass.orig 2005-04-27 19:46:05.000000000 +0200 >+++ flag-o-matic.eclass 2005-04-28 21:20:35.000000000 +0200 >@@ -63,6 +63,18 @@ > # notice: modern automatic specs files will also suppress -fstack-protector-all > # when only -fno-stack-protector is given > # >+#### has_pic #### >+# Returns true if the compiler by default or with current CFLAGS >+# builds position-independent code. >+# >+#### has_ssp_all #### >+# Returns true if the compiler by default or with current CFLAGS >+# generates stack smash protections for all functions >+# >+#### has_ssp #### >+# Returns true if the compiler by default or with current CFLAGS >+# generates stack smash protections for most vulnerable functions >+# > > # C[XX]FLAGS that we allow in strip-flags > setup-allowed-flags() { >@@ -326,7 +338,6 @@ > [ "${CFLAGS/-fPIC}" != "${CFLAGS}" ] && return 0 > [ "${CFLAGS/-fpic}" != "${CFLAGS}" ] && return 0 > [ "$(echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep __PIC__)" ] && return 0 >- test_version_info pie && return 0 > return 1 > } > >@@ -340,6 +351,14 @@ > return 1 > } > >+# indicate whether code for SSP is being generated for all functions >+has_ssp_all() { >+ # note; this matches only -fstack-protector-all >+ [ "${CFLAGS/-fstack-protector-all}" != "${CFLAGS}" ] && return 0 >+ [ "$(echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep __SSP_ALL__)" ] && return 0 >+ return 1 >+} >+ > # indicate whether code for SSP is being generated > has_ssp() { > # note; this matches both -fstack-protector and -fstack-protector-all
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 90391
:
57413
| 57511