Note that output section data commands can only appear inside output section

descriptions and not between them.
This commit is contained in:
Nick Clifton 2000-04-25 00:27:24 +00:00
parent adcf07e614
commit 2b5fc1f5d0
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-04-24 Nick Clifton <nickc@cygnus.com>
* ld.texinfo (Output Section Data): Add note that section data
commands cannot appear outside of section directives.
2000-04-2 Matthew Green <mrg@cygnus.com>
* configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.

View File

@ -2486,6 +2486,16 @@ When the object file format does not have an explicit endianness, as is
true of, for example, S-records, the value will be stored in the
endianness of the first input object file.
Note - these commands only work inside a section description and not
between them, so the following will produce an error from the linker:
@smallexample
SECTIONS @{@ .text : @{@ *(.text) @}@ LONG(1) .data : @{@ *(.data) @}@ @}@
@end smallexample
whereas this will work:
@smallexample
SECTIONS @{@ .text : @{@ *(.text) ; LONG(1) @}@ .data : @{@ *(.data) @}@ @}@
@end smallexample
@kindex FILL(@var{expression})
@cindex holes, filling
@cindex unspecified memory