[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
- [PATCH v2 1/7] configure: Look for .otf fonts, Vladimir Serbinenko, 2024/09/03
- [PATCH v2 2/7] erofs: Replace 64-bit modulo with bitwise operations, Vladimir Serbinenko, 2024/09/03
- [PATCH v2 3/7] xzembed: Silence warning when no BCJ is available, Vladimir Serbinenko, 2024/09/03
- [PATCH v2 5/7] gentpl: Put startup_raw.S into beginning of the image, Vladimir Serbinenko, 2024/09/03
- [PATCH v2 7/7] mkimage: Explicitly move modules to __bss_start, Vladimir Serbinenko, 2024/09/03
- [PATCH v2 6/7] offsets: Set mod_align to 4 on mips,
Vladimir Serbinenko <=
- [PATCH v2 4/7] configure: Add -mno-gpopt option, Vladimir Serbinenko, 2024/09/03