grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 6/7] offsets: Set mod_align to 4 on mips


From: Vladimir Serbinenko
Subject: [PATCH v2 6/7] offsets: Set mod_align to 4 on mips
Date: Tue, 3 Sep 2024 20:58:51 +0300

Module structure has natural alignment of 4. Respect it explicitly
rather than relying on the fact that _end is usually aligned

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
 include/grub/offsets.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/grub/offsets.h b/include/grub/offsets.h
index 871e1cd4c..442dc31de 100644
--- a/include/grub/offsets.h
+++ b/include/grub/offsets.h
@@ -118,9 +118,9 @@
 #define GRUB_KERNEL_SPARC64_IEEE1275_LOG_MOD_ALIGN 3
 #define GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN (1 << 
GRUB_KERNEL_SPARC64_IEEE1275_LOG_MOD_ALIGN)
 
-#define GRUB_KERNEL_MIPS_LOONGSON_MOD_ALIGN 0x1
-#define GRUB_KERNEL_MIPS_ARC_MOD_ALIGN 0x1
-#define GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN 0x1
+#define GRUB_KERNEL_MIPS_LOONGSON_MOD_ALIGN 0x4
+#define GRUB_KERNEL_MIPS_ARC_MOD_ALIGN 0x4
+#define GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN 0x4
 
 #define GRUB_KERNEL_ARM_UBOOT_MOD_ALIGN        0x8
 #define GRUB_KERNEL_ARM_UBOOT_TOTAL_MODULE_SIZE        0x4
-- 
2.39.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]