9.5.5.9.3 Output Section Region
A section can be assigned to a previously defined region of memory by
using >region
. See Memory Command.
Here is a simple
example:
MEMORY { rom : ORIGIN = 0x1000, LENGTH = 0x1000 }
SECTIONS { ROM : { *(.text) } >rom }