Merge pull request #3 from dbstream/trunk
linker: Add a comment regarding .bss placement.
This commit is contained in:
commit
cfe422cdfd
1 changed files with 4 additions and 0 deletions
|
@ -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.*)
|
||||
|
|
Loading…
Add table
Reference in a new issue