Merge pull request #3 from dbstream/trunk

linker: Add a comment regarding .bss placement.
This commit is contained in:
mint 2023-01-05 15:45:21 +01:00 committed by GitHub
commit cfe422cdfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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