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