Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 205767 Details for
Bug 281246
sys-boot/grub-0.97-r9 with hardened i686 gcc 3.4.6 won't boot
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Old gcc 3.4.6 hardened defined __PIC__ instead of __PIE__
fpie_check.patch (text/plain), 1.16 KB, created by
Magnus Granberg
on 2009-10-01 16:03:25 UTC
(
hide
)
Description:
Old gcc 3.4.6 hardened defined __PIC__ instead of __PIE__
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2009-10-01 16:03:25 UTC
Size:
1.16 KB
patch
obsolete
>--- configure.ac.zorry 2009-09-05 15:54:43.000000000 +0200 >+++ configure.ac 2009-09-05 16:35:48.000000000 +0200 >@@ -110,6 +110,42 @@ > fi > fi > >+AC_DEFUN(grub_CHECK_PIE,[ >+[# Position independent executable. >+pie_possible=yes] >+AC_MSG_CHECKING([whether `$CC' has `-fPIE' as default]) >+# Is this a reliable test case? >+AC_LANG_CONFTEST([[ >+#if defined (__PIE__) || defined (__PIC__) >+int main() { >+ return 0; >+} >+#else >+#error NO __PIE__ OR __PIC__ DEFINED. >+#endif >+]]) >+ >+[# `$CC -c -o ...' might not be portable. But, oh, well... Is calling >+# `ac_compile' like this correct, after all? >+if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then] >+ AC_MSG_RESULT([yes]) >+ [# Should we clear up other files as well, having called `AC_LANG_CONFTEST'? >+ rm -f conftest.s >+else >+ pie_possible=no] >+ AC_MSG_RESULT([no]) >+[fi] >+]) >+ >+# Position independent executable. >+grub_CHECK_PIE >+[# Need that, because some distributions ship compilers that include >+# `-fPIE' in the default specs. >+if [ x"$pie_possible" = xyes ]; then >+ STAGE1_CFLAGS="$STAGE1_CFLAGS -nopie" >+ STAGE2_CFLAGS="$STAGE2_CFLAGS -nopie" >+fi] >+ > AC_SUBST(STAGE1_CFLAGS) > AC_SUBST(STAGE2_CFLAGS) > AC_SUBST(GRUB_CFLAGS)
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 281246
:
201075
|
201076
|
203206
|
205767
|
205872
|
222823