Configuring Linker File to Several ROM Blocks

The following listing is an example to configure linker file to several ROM blocks.

Listing 1. ROM IMAGE address = 0x3000
MEMORY{
 internal_flash:        org = 0x00003000,   len = 0x0010000

MyFlash:           org = 0x00041000,   len = 0x00000008

 //org should match the LOAD address

}

SECTIONS{

.text {} > internal_flash

.my_flash  ALIGN(0x08) LOAD(0x00041000) : {} > MyFlash

}