gnupic: [gnupic] Relocatable code on 16F870


Previous by date: 15 Jun 2005 01:57:01 +0100 Re: [gnupic] Relocatable code on 16F870, Peter Onion
Next by date: 15 Jun 2005 01:57:01 +0100 GNU compiler C, Eduardo Namba
Previous in thread: 15 Jun 2005 01:57:01 +0100 Re: [gnupic] Relocatable code on 16F870, Peter Onion
Next in thread:

Subject: Re: [gnupic] Relocatable code on 16F870
From: Craig Franklin ####@####.####
Date: 15 Jun 2005 01:57:01 +0100
Message-Id: <42AF7D7B.1090407@users.sourceforge.net>

Peter Onion wrote:

>When I try to link a bit of relocatable code for a 16F870 I get this
>error...
>
>  
>
You really need to get in the habit of attaching the source that caused 
the error.

> message: using default linker script
>"/usr/local/share/gputils/lkr/16f870.lkr"
>error: linker script has no definition that matches the type of section
>".udata"
>
>It works fine if I change the processor to a 16F877.
>
>I've looked in the ".lkr" files but I can't see anything obvious !
>
>  
>
I am going to guess that this is the problem...

There are no unprotected sections of DATABANK on the 16f870.  So if you 
create a udata section the linker has no place to put it.  That is why 
the error message says "type of section".  The 16f877 has udata sections 
so your code works on it.

You can either:
1.  Switch to udata_shr sections.
2.  Add the -r or --use-shared switch on the linker.  That will allow 
the linker to use the shared memory for udata or idata sections.

>I'm running gputils versions from CVS
>gpasm-0.13.2 beta
>gplink-0.13.2 alpha
>
>Peter
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>
>
>  
>


Previous by date: 15 Jun 2005 01:57:01 +0100 Re: [gnupic] Relocatable code on 16F870, Peter Onion
Next by date: 15 Jun 2005 01:57:01 +0100 GNU compiler C, Eduardo Namba
Previous in thread: 15 Jun 2005 01:57:01 +0100 Re: [gnupic] Relocatable code on 16F870, Peter Onion
Next in thread:


Powered by ezmlm-browse 0.20.