5.7.1.24 Reserve Option

The -mreserve=ranges option allows you to reserve memory normally used by the program. This option has the general form:
-mreserve=space@start:end

where space names the section which will act as a placeholder and reserve the memory; and start and end are addresses, denoting the memory range to be excluded. For example, -mreserve=data@0x80000200:0x800002FF will reserve memory in both the kseg0 and kseg1 memory regions (that is, at starting addresses 0x80000200 and 0xa0000200) using the section reserve_data_0x80000200 as a placeholder. The command -mreserve=temp@0x9D001000:0x9D001003 will reserve 4 bytes in both the kseg0 and kseg1 memory regions using the section reserve_temp_0x9d001000.