chipKIT32/pic32-Arduino-Bootloader — Issue #2: Problems compiling under MPLAB X 1.00 and MPLAB C32 V2.01
Author: soothill
Created: 2011-12-20 00:30:38+00:00
State: open

There appear to be two different sets of errors when trying to compile this on a fresh install.

I am trying to use a PIC32 Ethernet demo board and I get the following compile errors:-

data_init: Link Error: Could not allocate section .dinit, size = 8 PC units, attributes = code
data_init: Link Error: Could not allocate section .dinit, size = 8 PC units, attributes = code
Link Error: Could not allocate program memory

Digging around it seems the crt0.S has changed and added a new digit section taken from the release notes.

What I am not sure about is which sections to take across from the old crt0.s to the new one to get this to compile correctly.

These lines also needed to be added into the boot-linkerscript.ld to stop it producing errors.

.debug_varnames 0 : { *(.debug_varnames) }
.debug_pubtypes 0 : { *(.debug_pubtypes) }
.debug_range 0 : { *(.debug_ranges) }