/arm-eabi/bin/ld.exe: dip-plugin.elf.orig section `.text' will not fit in region `exe'
/arm-eabi/bin/ld.exe: section .data loaded at [13801000,1380100b] overlaps section .text loaded at [13800020,1380101f]
/arm-eabi/bin/ld.exe: region `exe' overflowed by 32 bytes
collect2: ld returned 1 exit status
make: *** [dip-plugin.elf] Error 1
This is an excerpt from the current link.ld
Code:
/* Sections area */
MEMORY {
ÂÂÂÂtableÂÂÂÂÂÂÂÂ: ORIGIN = 0x0, LENGTH = 0x4000
ÂÂÂÂexe(rwx)ÂÂÂÂ: ORIGIN = 0x13800000, LENGTH = 0x1000
ÂÂÂÂram(rw)ÂÂÂÂÂÂÂÂ: ORIGIN = 0x13801000, LENGTH = 0x3000
}
__exe_start_phys__ÂÂÂÂÂÂÂÂ= 0x13800000;
__ram_start_phys__ÂÂÂÂÂÂÂÂ= 0x13801000;
I resized both exe and ram sections so that the module size remains unchanged:
CODE/* Sections area */
MEMORY {
ÂÂÂÂtableÂÂÂÂÂÂÂÂ: ORIGIN = 0x0, LENGTH = 0x4000
ÂÂÂÂexe(rwx)ÂÂÂÂ: ORIGIN = 0x13800000, LENGTH = 0x1200
ÂÂÂÂram(rw)ÂÂÂÂÂÂÂÂ: ORIGIN = 0x13801200, LENGTH = 0x2E00
}
__exe_start_phys__ÂÂÂÂÂÂÂÂ= 0x13800000;
__ram_start_phys__ÂÂÂÂÂÂÂÂ= 0x13801200;