1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:57:45 +00:00

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
parent 614ff9c46e
commit d170186163

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)