Skip to content

Commit d72a3b5

Browse files
timschumiawesomekling
authored andcommitted
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.
1 parent 07b950d commit d72a3b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kernel/Arch/x86/linker.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ SECTIONS
7171
end_of_kernel_data = .;
7272
} :data
7373

74-
.ro_after_init ALIGN(4K) (NOLOAD) : AT(ADDR(.ro_after_init))
74+
.ro_after_init ALIGN(4K) : AT(ADDR(.ro_after_init))
7575
{
7676
start_of_ro_after_init = .;
7777
*(.ro_after_init);

0 commit comments

Comments
 (0)