[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Re: Rom allocation boundary checks
From: |
Björn Haase |
Subject: |
[avr-gcc-list] Re: Rom allocation boundary checks |
Date: |
Sat, 19 Aug 2006 20:03:17 +0200 |
User-agent: |
KMail/1.7.1 |
> BTW how to make GCC not to cross 64K boundary while allocating ROM
> constants? Is any care required to make sure it will not happen?
The position to fix this issue is avr-ld. Presently there are no checks for
overflows at all. The solution would be to adjust the linker scripts
individually for the different devices. That's not so easy to do
automatically, unfortunately.
Probably the easiest solution for you would be to use a custom-designed linker
script. The template for this is in
binutils/src/ld/scripttempl/avr.sc
For you, being aware of the problem, the result of automatic checking might
not be worth the effort.
Bjoern.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-gcc-list] Re: Rom allocation boundary checks,
Björn Haase <=