Hi Jonathan,

> message: using default linker script  
> "/usr/local/share/gputils/lkr/18f2431.lkr"
> warning: relocation of section ".idata" failed, relocating to a shared  
> memory location
> error: linker script has no definition that matches the type of section  
> ".idata"

Well, actually these are messages from gputils (gplink) not sdcc ...
However, you have too large a data structure (or just too many of them) to  
fit into the 256-byte banks declared in the linker script.

<code>
char memhog[256] = { 1 };
void main (void) {}
</code>

works for me; increasing the size of the array

<code>
char memhog[257] = { 1 };
void main (void) {}
</code>

should fail.

You can inrcease the bank size in the linker script, see the list archive  
thread "[Sdcc-user] PIC16 port - how to create array of more than 256  
bytes ?" (e.g.,  
http://sourceforge.net/mailarchive/message.php?msg_id=3572.6458-5037-1914259172-1252053295%40seznam.cz
  
).

Good luck,

Raphael

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to