Clarify docs that bss is zero-initialized
Addresses comment raised in #1202.
This commit is contained in:
committed by
Oliver Schmidt
parent
9fcde120aa
commit
85e8a6cb9f
@@ -1043,8 +1043,8 @@ parameter with the <tt/#pragma/.
|
|||||||
<sect1><tt>#pragma bss-name ([push,] <name>)</tt><label id="pragma-bss-name"><p>
|
<sect1><tt>#pragma bss-name ([push,] <name>)</tt><label id="pragma-bss-name"><p>
|
||||||
|
|
||||||
This pragma changes the name used for the BSS segment (the BSS segment
|
This pragma changes the name used for the BSS segment (the BSS segment
|
||||||
is used to store uninitialized data). The argument is a string enclosed
|
is used to store variables with static storage duration and no explicit
|
||||||
in double quotes.
|
initializer). The argument is a string enclosed in double quotes.
|
||||||
|
|
||||||
Note: The default linker configuration file does only map the standard
|
Note: The default linker configuration file does only map the standard
|
||||||
segments. If you use other segments, you have to create a new linker
|
segments. If you use other segments, you have to create a new linker
|
||||||
@@ -1052,7 +1052,8 @@ parameter with the <tt/#pragma/.
|
|||||||
|
|
||||||
Beware: The startup code will zero only the default BSS segment. If you
|
Beware: The startup code will zero only the default BSS segment. If you
|
||||||
use another BSS segment, you have to do that yourself, otherwise
|
use another BSS segment, you have to do that yourself, otherwise
|
||||||
uninitialized variables do not have the value zero.
|
variables with static storage duration and no explicit initializer will
|
||||||
|
not have the value zero.
|
||||||
|
|
||||||
The <tt/#pragma/ understands the push and pop parameters as explained above.
|
The <tt/#pragma/ understands the push and pop parameters as explained above.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user