OAR

RTEMS GNU Tools On-Line Library


Output Section Fill

PREV UP next Bookshelf

3.6.8.5: Output section fill

You can set the fill pattern for an entire section by using `=fillexp'. fillexp is an expression (see Expressions). Any otherwise unspecified regions of memory within the output section (for example, gaps left due to the required alignment of input sections) will be filled with the two least significant bytes of the value, repeated as necessary.

You can also change the fill value with a FILL command in the output section commands; see Output Section Data.

Here is a simple example:

SECTIONS { .text : { *(.text) } =0x9090 }


PREV UP next Bookshelf

Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.