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 a0dd6ec6b1.
This commit is contained in:
Timon Kruiper 2023-09-30 16:49:15 +02:00 committed by Daniel Bertalan
commit d170186163
Notes: sideshowbarker 2024-07-17 01:00:06 +09:00

View file

@ -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)