1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/vga.ld Sat May 06 17:53:56 2017 +0200
1.3 @@ -0,0 +1,44 @@
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_program_mem (rx) : ORIGIN = 0x9FC00000, LENGTH = 0xBF0
1.16 + physical_program_mem (rx) : ORIGIN = 0x1FC00000, LENGTH = 0xBF0
1.17 + sfrs : ORIGIN = 0xBF800000, LENGTH = 0x100000
1.18 + configsfrs : ORIGIN = 0xBFC00BF0, LENGTH = 0x10
1.19 + config3 : ORIGIN = 0xBFC00BF0, LENGTH = 0x4
1.20 + config2 : ORIGIN = 0xBFC00BF4, LENGTH = 0x4
1.21 + config1 : ORIGIN = 0xBFC00BF8, LENGTH = 0x4
1.22 + config0 : ORIGIN = 0xBFC00BFC, LENGTH = 0x4
1.23 + physical_config3 : ORIGIN = 0x3FC00BF0, LENGTH = 0x4
1.24 + physical_config2 : ORIGIN = 0x3FC00BF4, LENGTH = 0x4
1.25 + physical_config1 : ORIGIN = 0x3FC00BF8, LENGTH = 0x4
1.26 + physical_config0 : ORIGIN = 0x3FC00BFC, LENGTH = 0x4
1.27 +}
1.28 +
1.29 +SECTIONS
1.30 +{
1.31 + .text : { *(.text*) } > kseg0_program_mem AT > physical_program_mem
1.32 + .bss : { *(.bss*) } > kseg1_data_mem
1.33 + .got : {
1.34 + _gp = ALIGN(16);
1.35 + *(.got*)
1.36 + } > kseg0_program_mem AT > physical_program_mem
1.37 + .devcfg0 : {
1.38 + *(.devcfg0)
1.39 + } > config0 AT > physical_config0
1.40 + .devcfg1 : {
1.41 + *(.devcfg1)
1.42 + } > config1 AT > physical_config1
1.43 + .devcfg2 : {
1.44 + *(.devcfg2)
1.45 + } > config2 AT > physical_config2
1.46 + /DISCARD/ : { *(.reginfo) *(.MIPS.abiflags) }
1.47 +}