1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/intcond.ld Tue Oct 16 23:26:17 2018 +0200
1.3 @@ -0,0 +1,42 @@
1.4 +OUTPUT_ARCH(mips)
1.5 +ENTRY(_start)
1.6 +
1.7 +/* See...
1.8 + * FIGURE 4-5: MEMORY MAP ON RESET FOR PIC32MX170/270 DEVICES (64 KB RAM, 256 KB FLASH)
1.9 + * PIC32MX1XX/2XX 28/36/44-pin Family Data Sheet
1.10 + */
1.11 +
1.12 +MEMORY
1.13 +{
1.14 + kseg1_data_mem (w!x) : ORIGIN = 0xA0000000, LENGTH = 0x10000
1.15 + kseg0_boot_mem (rx) : ORIGIN = 0x9FC00000, LENGTH = 0xBF0
1.16 + kseg0_program_mem (rx) : ORIGIN = 0x9D000000, LENGTH = 0x40000
1.17 + physical_boot_mem (rx) : ORIGIN = 0x1FC00000, LENGTH = 0xBF0
1.18 + physical_program_mem (rx) : ORIGIN = 0x1D000000, LENGTH = 0x40000
1.19 + sfrs : ORIGIN = 0xBF800000, LENGTH = 0x100000
1.20 + configsfrs : ORIGIN = 0xBFC00BF0, LENGTH = 0x10
1.21 + config3 : ORIGIN = 0xBFC00BF0, LENGTH = 0x4
1.22 + config2 : ORIGIN = 0xBFC00BF4, LENGTH = 0x4
1.23 + config1 : ORIGIN = 0xBFC00BF8, LENGTH = 0x4
1.24 + config0 : ORIGIN = 0xBFC00BFC, LENGTH = 0x4
1.25 + physical_config3 : ORIGIN = 0x3FC00BF0, LENGTH = 0x4
1.26 + physical_config2 : ORIGIN = 0x3FC00BF4, LENGTH = 0x4
1.27 + physical_config1 : ORIGIN = 0x3FC00BF8, LENGTH = 0x4
1.28 + physical_config0 : ORIGIN = 0x3FC00BFC, LENGTH = 0x4
1.29 +}
1.30 +
1.31 +SECTIONS
1.32 +{
1.33 + .boot : { *(.boot*) } > kseg0_boot_mem AT > physical_boot_mem
1.34 + .vectors : { *(.vectors*) } > kseg0_program_mem AT > physical_program_mem
1.35 + .text : { *(.text*) } > kseg0_program_mem AT > physical_program_mem
1.36 + .bss : { *(.bss*) } > kseg1_data_mem
1.37 + .got : {
1.38 + _gp = ALIGN(16);
1.39 + *(.got*)
1.40 + } > kseg0_program_mem AT > physical_program_mem
1.41 + .devcfg0 : { *(.devcfg0) } > config0 AT > physical_config0
1.42 + .devcfg1 : { *(.devcfg1) } > config1 AT > physical_config1
1.43 + .devcfg2 : { *(.devcfg2) } > config2 AT > physical_config2
1.44 + /DISCARD/ : { *(.reginfo) *(.MIPS.abiflags) }
1.45 +}