Where is my kseg0_boot_mem? (PIC32)
In MPLAB IDE check your build options -> directories to make sure that the Library Search path is set correctly. I believe this directory is where the linker loads the C startup code from.