From d170186163ddca25b7631712ca62f9f92a31a65d Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Sat, 30 Sep 2023 16:49:15 +0200 Subject: [PATCH] Kernel/aarch64: Subtract KERNEL_MAPPING_BASE from driver_init section This subtraction is necessary to ensure that the section has the correct address. Also, without this change, the Kernel ELF binary would explode in size. This was forgotten in a0dd6ec6b1a70e750dc9e504a648e967f4c5119e. --- Kernel/Arch/aarch64/linker.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Arch/aarch64/linker.ld b/Kernel/Arch/aarch64/linker.ld index bf8ca0d751..dba38d052d 100644 --- a/Kernel/Arch/aarch64/linker.ld +++ b/Kernel/Arch/aarch64/linker.ld @@ -31,7 +31,7 @@ SECTIONS *(.text*) } :text - .driver_init ALIGN(4K) : AT (ADDR(.driver_init)) + .driver_init ALIGN(4K) : AT (ADDR(.driver_init) - KERNEL_MAPPING_BASE) { driver_init_table_start = .; *(.driver_init)