From d0e11524c7c96982649d69d5e277d3dcc12ae47e Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Feb 16 2012 16:45:38 +0000 Subject: Add -fno-reorder-functions Don't let the compiler jam stuff into .text.unlikely as that totally fails for reasons unknown on UEFI builds. --- diff --git a/grub.spec b/grub.spec index 5183602..d1e98b9 100644 --- a/grub.spec +++ b/grub.spec @@ -58,7 +58,7 @@ sed -i 's/0\.97/%{version}-%{release}/' configure.in autoreconf autoconf GCCVERS=$(gcc --version | head -1 | cut -d\ -f3 | cut -d. -f1) -CFLAGS="-O0 -g -fno-strict-aliasing -Wall -Werror -Wno-shadow -Wno-unused" +CFLAGS="-O0 -g -fno-reorder-functions -fno-strict-aliasing -Wall -Werror -Wno-shadow -Wno-unused" if [ "$GCCVERS" == "4" ]; then CFLAGS="$CFLAGS -Wno-pointer-sign" fi