mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
Formatting adjustments, for better smallbook formatting
and to agree better w/FSF (RMS) indentation conventions.
This commit is contained in:
@ -1768,9 +1768,11 @@ and one called @samp{.mdata}, which is loaded at the end of the
|
|||||||
SECTIONS
|
SECTIONS
|
||||||
@{
|
@{
|
||||||
.text 0x1000 : @{ *(.text) _etext = . ; @}
|
.text 0x1000 : @{ *(.text) _etext = . ; @}
|
||||||
.mdata 0x2000 : AT ( ADDR(.text) + SIZEOF ( .text ) )
|
.mdata 0x2000 :
|
||||||
|
AT ( ADDR(.text) + SIZEOF ( .text ) )
|
||||||
@{ _data = . ; *(.data); _edata = . ; @}
|
@{ _data = . ; *(.data); _edata = . ; @}
|
||||||
.bss 0x3000 : @{ _bstart = . ; *(.bss) *(COMMON) ; _bend = . ;@}
|
.bss 0x3000 :
|
||||||
|
@{ _bstart = . ; *(.bss) *(COMMON) ; _bend = . ;@}
|
||||||
@}
|
@}
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@ -1779,11 +1781,11 @@ for use with a ROM generated this way has to include something like
|
|||||||
the following, to copy the initialized data from the ROM image to its runtime
|
the following, to copy the initialized data from the ROM image to its runtime
|
||||||
address:
|
address:
|
||||||
|
|
||||||
@example
|
@smallexample
|
||||||
/* ROM has data glommed at end of text; copy it. */
|
|
||||||
char *src = _etext;
|
char *src = _etext;
|
||||||
char *dst = _data;
|
char *dst = _data;
|
||||||
|
|
||||||
|
/* ROM has data at end of text; copy it. */
|
||||||
while (dst < _edata) @{
|
while (dst < _edata) @{
|
||||||
*dst++ = *src++;
|
*dst++ = *src++;
|
||||||
@}
|
@}
|
||||||
@ -1791,7 +1793,7 @@ while (dst < _edata) @{
|
|||||||
/* Zero bss */
|
/* Zero bss */
|
||||||
for (dst = _bstart; dst< _bend; dst++)
|
for (dst = _bstart; dst< _bend; dst++)
|
||||||
*dst = 0;
|
*dst = 0;
|
||||||
@end example
|
@end smallexample
|
||||||
|
|
||||||
@item =@var{fill}
|
@item =@var{fill}
|
||||||
@kindex =@var{fill}
|
@kindex =@var{fill}
|
||||||
|
Reference in New Issue
Block a user