mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 22:35:28 +00:00
db7cf3a089
Add some fixes for BLS parsing logic and also make 20-grub.install script to query the relative path of the kernel and initramfs images, so BLS can also work when /boot is not a mount point or is a btrfs subvolume. Also pull some build fixes. Resolves: rhbz#1588184 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
53 lines
2 KiB
Diff
53 lines
2 KiB
Diff
From 0724038a6f554f688cfcd6e05d52329c384d8a6d Mon Sep 17 00:00:00 2001
|
|
From: Peter Jones <pjones@redhat.com>
|
|
Date: Thu, 10 May 2018 13:40:19 -0400
|
|
Subject: [PATCH 239/243] Fixup for newer compiler
|
|
|
|
---
|
|
conf/Makefile.common | 2 +-
|
|
grub-core/fs/btrfs.c | 2 +-
|
|
include/grub/gpt_partition.h | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/conf/Makefile.common b/conf/Makefile.common
|
|
index 044ab3abe88..c75848f5c06 100644
|
|
--- a/conf/Makefile.common
|
|
+++ b/conf/Makefile.common
|
|
@@ -38,7 +38,7 @@ CFLAGS_KERNEL = $(CFLAGS_PLATFORM) -ffreestanding
|
|
LDFLAGS_KERNEL = $(LDFLAGS_PLATFORM) -nostdlib $(TARGET_LDFLAGS_OLDMAGIC)
|
|
CPPFLAGS_KERNEL = $(CPPFLAGS_CPU) $(CPPFLAGS_PLATFORM) -DGRUB_KERNEL=1
|
|
CCASFLAGS_KERNEL = $(CCASFLAGS_CPU) $(CCASFLAGS_PLATFORM)
|
|
-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
|
|
+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
|
|
|
|
CFLAGS_MODULE = $(CFLAGS_PLATFORM) -ffreestanding
|
|
LDFLAGS_MODULE = $(LDFLAGS_PLATFORM) -nostdlib $(TARGET_LDFLAGS_OLDMAGIC) -Wl,-r,-d
|
|
diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c
|
|
index 3cd9472197c..8d3f644e124 100644
|
|
--- a/grub-core/fs/btrfs.c
|
|
+++ b/grub-core/fs/btrfs.c
|
|
@@ -198,7 +198,7 @@ struct grub_btrfs_inode
|
|
grub_uint64_t size;
|
|
grub_uint8_t dummy2[0x70];
|
|
struct grub_btrfs_time mtime;
|
|
-} GRUB_PACKED;
|
|
+} GRUB_PACKED __attribute__ ((aligned(8)));
|
|
|
|
struct grub_btrfs_extent_data
|
|
{
|
|
diff --git a/include/grub/gpt_partition.h b/include/grub/gpt_partition.h
|
|
index 1b32f6725a4..8cddf997efc 100644
|
|
--- a/include/grub/gpt_partition.h
|
|
+++ b/include/grub/gpt_partition.h
|
|
@@ -76,7 +76,7 @@ struct grub_gpt_partentry
|
|
grub_uint64_t end;
|
|
grub_uint64_t attrib;
|
|
char name[72];
|
|
-} GRUB_PACKED;
|
|
+} GRUB_PACKED __attribute__ ((aligned(8)));
|
|
|
|
grub_err_t
|
|
grub_gpt_partition_map_iterate (grub_disk_t disk,
|
|
--
|
|
2.17.1
|
|
|