diff --git a/kernel/linker.ld b/kernel/linker.ld index 3645258..529a4dd 100644 --- a/kernel/linker.ld +++ b/kernel/linker.ld @@ -40,6 +40,10 @@ SECTIONS *(.data .data.*) } :data + /* NOTE: .bss needs to be the last thing mapped to :data, otherwise lots of */ + /* unnecessary zeros will be written to the binary. */ + /* If you need, for example, .init_array and .fini_array, those should be placed */ + /* above this. */ .bss : { *(COMMON) *(.bss .bss.*)