Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 300329 Details for
Bug 360513
[4.6/4.7] sys-boot/grub-0.97 fails to boot when built w/ >=sys-devel/gcc-4.6.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Ubuntu patch for this problem from GRUB HEAD r803
803_802.diff (text/plain), 1.33 KB, created by
Richard Yao (RETIRED)
on 2012-01-30 01:05:41 UTC
(
hide
)
Description:
Ubuntu patch for this problem from GRUB HEAD r803
Filename:
MIME Type:
Creator:
Richard Yao (RETIRED)
Created:
2012-01-30 01:05:41 UTC
Size:
1.33 KB
patch
obsolete
>=== modified file 'ChangeLog' >--- ChangeLog 2010-01-25 19:13:33 +0000 >+++ ChangeLog 2011-09-26 09:15:32 +0000 >@@ -1,3 +1,10 @@ >+2011-09-26 Colin Watson <cjwatson@ubuntu.com> >+ >+ * configure.ac: Build stage2 with -fno-reorder-functions to prevent >+ unlikely-to-be-executed functions being reordered before _start with >+ GCC 4.6. >+ Fixes Ubuntu bug #837815. >+ > 2010-01-25 Robert Millan <rmh.grub@aybabtu.com> > > * stage2/imgact_aout.h: Rewrite using aout.h from GRUB 1.97.2 as > >=== modified file 'configure.ac' >--- configure.ac 2010-01-21 17:17:59 +0000 >+++ configure.ac 2011-09-26 09:15:32 +0000 >@@ -114,6 +114,22 @@ > if test "x$grub_cv_cc_no_stack_protector" = xyes; then > STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-stack-protector" > fi >+ # GCC >= 3.3 supports -fno-reorder-functions; this defends us against >+ # unlikely-to-be-executed functions being linked before _start with GCC >+ # >= 4.6. >+ AC_CACHE_CHECK([whether gcc has -fno-reorder-functions], >+ no_reorder_functions_flag, [ >+ saved_CFLAGS=$CFLAGS >+ CFLAGS="-fno-reorder-functions" >+ AC_TRY_COMPILE(, >+ , >+ no_reorder_functions_flag=yes, >+ no_reorder_functions_flag=no) >+ CFLAGS=$saved_CFLAGS >+ ]) >+ if test "x$no_reorder_functions_flag" = xyes; then >+ STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-reorder-functions" >+ fi > fi > fi > >
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 360513
:
278079
|
294085
|
294087
|
294089
|
298111
|
298113
|
299559
|
300329
|
310751
|
312587
|
313069
|
313099