dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0264-Fixup-for-newer-compiler.patch

4fe85b
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
4fe85b
From: Peter Jones <pjones@redhat.com>
4fe85b
Date: Thu, 10 May 2018 13:40:19 -0400
4fe85b
Subject: [PATCH] Fixup for newer compiler
4fe85b
4fe85b
---
4fe85b
 grub-core/fs/btrfs.c         | 2 +-
4fe85b
 include/grub/gpt_partition.h | 2 +-
4fe85b
 conf/Makefile.common         | 2 +-
4fe85b
 3 files changed, 3 insertions(+), 3 deletions(-)
4fe85b
4fe85b
diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c
4fe85b
index f7b6c152037..4a6efffeb46 100644
4fe85b
--- a/grub-core/fs/btrfs.c
4fe85b
+++ b/grub-core/fs/btrfs.c
4fe85b
@@ -183,7 +183,7 @@ struct grub_btrfs_inode
4fe85b
   grub_uint64_t size;
4fe85b
   grub_uint8_t dummy2[0x70];
4fe85b
   struct grub_btrfs_time mtime;
4fe85b
-} GRUB_PACKED;
4fe85b
+} GRUB_PACKED  __attribute__ ((aligned(8)));
4fe85b
 
4fe85b
 struct grub_btrfs_extent_data
4fe85b
 {
4fe85b
diff --git a/include/grub/gpt_partition.h b/include/grub/gpt_partition.h
4fe85b
index 1b32f6725a4..8cddf997efc 100644
4fe85b
--- a/include/grub/gpt_partition.h
4fe85b
+++ b/include/grub/gpt_partition.h
4fe85b
@@ -76,7 +76,7 @@ struct grub_gpt_partentry
4fe85b
   grub_uint64_t end;
4fe85b
   grub_uint64_t attrib;
4fe85b
   char name[72];
4fe85b
-} GRUB_PACKED;
4fe85b
+} GRUB_PACKED  __attribute__ ((aligned(8)));
4fe85b
 
4fe85b
 grub_err_t
4fe85b
 grub_gpt_partition_map_iterate (grub_disk_t disk,
4fe85b
diff --git a/conf/Makefile.common b/conf/Makefile.common
4fe85b
index 6f836d82771..9e0e8364f38 100644
4fe85b
--- a/conf/Makefile.common
4fe85b
+++ b/conf/Makefile.common
4fe85b
@@ -45,7 +45,7 @@ CFLAGS_KERNEL = $(CFLAGS_CPU) $(CFLAGS_PLATFORM) -ffreestanding
4fe85b
 LDFLAGS_KERNEL = $(LDFLAGS_CPU) $(LDFLAGS_PLATFORM) -nostdlib $(TARGET_LDFLAGS_OLDMAGIC) $(TARGET_LDFLAGS_STATIC_LIBGCC)
4fe85b
 CPPFLAGS_KERNEL = $(CPPFLAGS_CPU) $(CPPFLAGS_PLATFORM) -DGRUB_KERNEL=1
4fe85b
 CCASFLAGS_KERNEL = $(CCASFLAGS_CPU) $(CCASFLAGS_PLATFORM)
4fe85b
-STRIPFLAGS_KERNEL = -R .eh_frame -R .rel.dyn -R .reginfo -R .note -R .comment -R .drectve -R .note.gnu.gold-version
4fe85b
+STRIPFLAGS_KERNEL = -R .eh_frame -R .rel.dyn -R .reginfo -R .note -R .comment -R .drectve -R .note.gnu.gold-version -R .MIPS.abiflags -R .ARM.exidx -R .note.gnu.property -R .gnu.build.attributes
4fe85b
 
4fe85b
 CFLAGS_MODULE = $(CFLAGS_CPU) $(CFLAGS_PLATFORM) -ffreestanding
4fe85b
 LDFLAGS_MODULE = $(LDFLAGS_CPU) $(LDFLAGS_PLATFORM) -nostdlib $(TARGET_LDFLAGS_OLDMAGIC) -Wl,-r,-d