diff options
author | Roland Pesch <pesch@cygnus> | 1994-02-03 04:38:58 +0000 |
---|---|---|
committer | Roland Pesch <pesch@cygnus> | 1994-02-03 04:38:58 +0000 |
commit | 139c8857be582c3e05fecd3b0f91368632fd9b12 (patch) | |
tree | 15ef6d0e75ef72eda5da0207ca0b2cd3c4e99974 /ld | |
parent | 7c8fab26c8aa8bb1ddda9b245371379177e6769e (diff) | |
download | gdb-139c8857be582c3e05fecd3b0f91368632fd9b12.zip gdb-139c8857be582c3e05fecd3b0f91368632fd9b12.tar.gz gdb-139c8857be582c3e05fecd3b0f91368632fd9b12.tar.bz2 |
Formatting adjustments, for better smallbook formatting
and to agree better w/FSF (RMS) indentation conventions.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ld.texinfo | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo index f096c78..4c929ac 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -1766,11 +1766,13 @@ and one called @samp{.mdata}, which is loaded at the end of the @smallexample SECTIONS - @{ - .text 0x1000 : @{ *(.text) _etext = . ; @} - .mdata 0x2000 : AT ( ADDR(.text) + SIZEOF ( .text ) ) - @{ _data = . ; *(.data); _edata = . ; @} - .bss 0x3000 : @{ _bstart = . ; *(.bss) *(COMMON) ; _bend = . ;@} + @{ + .text 0x1000 : @{ *(.text) _etext = . ; @} + .mdata 0x2000 : + AT ( ADDR(.text) + SIZEOF ( .text ) ) + @{ _data = . ; *(.data); _edata = . ; @} + .bss 0x3000 : + @{ _bstart = . ; *(.bss) *(COMMON) ; _bend = . ;@} @} @end smallexample @@ -1779,19 +1781,19 @@ 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 address: -@example -/* ROM has data glommed at end of text; copy it. */ +@smallexample char *src = _etext; char *dst = _data; +/* ROM has data at end of text; copy it. */ while (dst < _edata) @{ - *dst++ = *src++; + *dst++ = *src++; @} /* Zero bss */ for (dst = _bstart; dst< _bend; dst++) - *dst = 0; -@end example + *dst = 0; +@end smallexample @item =@var{fill} @kindex =@var{fill} |