1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Kernel: Do not mark .ro_after_init as NOLOAD

There is no particular reason why this section should be marked as
`NOBITS` (as it might very well include initialized values), and it
resolves 90% of the mismatches between the input and output sections,
which LLD now warns about when linking.
This commit is contained in:
Tim Schumacher 2022-09-17 13:36:24 +02:00 committed by Andreas Kling
parent 07b950d8a6
commit d72a3b5959

View file

@ -71,7 +71,7 @@ SECTIONS
end_of_kernel_data = .;
} :data
.ro_after_init ALIGN(4K) (NOLOAD) : AT(ADDR(.ro_after_init))
.ro_after_init ALIGN(4K) : AT(ADDR(.ro_after_init))
{
start_of_ro_after_init = .;
*(.ro_after_init);