mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 05:52:19 +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:
parent
614ff9c46e
commit
d170186163
Notes:
sideshowbarker
2024-07-17 01:00:06 +09:00
Author: https://github.com/FireFox317
Commit: d170186163
Pull-request: https://github.com/SerenityOS/serenity/pull/21277
Reviewed-by: https://github.com/BertalanD ✅
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue