[En-Nut-Discussion] avr-gcc linker: code size checking

Dusan Ferbas dferbas at dfsoft.cz
Tue Feb 15 20:16:53 CET 2005


Hi,

when linking with avr-gcc there is a code area (text) + area from where 
data section (in RAM) is initialized. Linker checks only if text area does 
not exceed 128kB limit (description in linker script: 
\WinAVR\avr\lib\ldscripts\avr5.x).

Is there a way how to check if .text + .data fits into 128kB range ? Does 
anybody has modified linker script for this ?


---
>Subject: RE: [En-Nut-Discussion] eboot bug fix
>...
>
>eboot assumes that its size is 8K in tftp.c (instead 4K) for 'self' flash
>write protection.
>Bug appairs when your code crosses over 128-8K limit.
>...
>Jean Pierre


Dusan Ferbas
www.dfsoft.cz 




More information about the En-Nut-Discussion mailing list