linker: Add a comment regarding .bss placement.

This commit is contained in:
dbstream 2023-01-05 15:35:08 +01:00
parent e5cde3f2ee
commit 60aba051ff

View file

@ -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.*)