Skip to contentSkip to conversation

nx: Rename GRUB_DL_ALIGN to DL_ALIGN

PATCH In review Daniel Kiper via Grub-devel 2 participants 3 messages Oct 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nx: Rename GRUB_DL_ALIGN to DL_ALIGN

Rename has been skipped by mistake in the original commit.

Fixes 94649c026 (nx: Set page permissions for loaded modules)
---
 grub-core/kern/dl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
grub-core/kern/dl.c +1 -1
index 5a66e0886..8ad015b07 100644
@@ -646,7 +646,7 @@ grub_dl_set_mem_attrs (grub_dl_t mod, void *ehdr)
   grub_err_t err;
 #if !defined (__i386__) && !defined (__x86_64__) && !defined(__riscv) && \
   !defined (__loongarch__)
-  grub_size_t arch_addralign = GRUB_DL_ALIGN;
+  grub_size_t arch_addralign = DL_ALIGN;
   grub_addr_t tgaddr;
   grub_size_t tgsz;
 #endif
Signature · 7 lines
2.11.0


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
author Reviewed-by Ross Philipson on v1 1/1
#1 lore raw
Quoted 5 lines · Daniel Kiper

Rename has been skipped by mistake in the original commit.

Fixes 94649c026 (nx: Set page permissions for loaded modules)
Quoted 9 lines
---
  grub-core/kern/dl.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
grub-core/kern/dl.c +0 -0
index 5a66e0886..8ad015b07 100644

grub-core/kern/dl.c grub_dl_set_mem_attrs (grub_dl_t mod, void *ehdr) · line 652

Quoted 8 lines
grub-core/kern/dl.c +1 -1
@@ -646,7 +646,7 @@ grub_dl_set_mem_attrs (grub_dl_t mod, void *ehdr)
    grub_err_t err;
  #if !defined (__i386__) && !defined (__x86_64__) && !defined(__riscv) && \
    !defined (__loongarch__)
-  grub_size_t arch_addralign = GRUB_DL_ALIGN;
+  grub_size_t arch_addralign = DL_ALIGN;
    grub_addr_t tgaddr;
    grub_size_t tgsz;
  #endif

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Tested-by on v1 1/1
#2 lore raw
In reply to Daniel Kiper via Grub-devel
Quoted 3 lines · Daniel Kiper

Rename has been skipped by mistake in the original commit.

Fixes 94649c026 (nx: Set page permissions for loaded modules)

Fixes the build on aarch64/arm64 for me.

Signature · 7 lines
Regards,
Sudeep

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel