gnupic: Re: [gnupic] Relocation problems with gplink


Previous by date: 21 May 2005 02:17:50 +0100 Re: [gnupic] Relocation problems with gplink, Peter Onion
Next by date: 21 May 2005 02:17:50 +0100 function pointers? (was Re: [gnupic] Relocation problems with gplink), Iain Dooley
Previous in thread: 21 May 2005 02:17:50 +0100 Re: [gnupic] Relocation problems with gplink, Peter Onion
Next in thread:

Subject: Re: [gnupic] Relocation problems with gplink
From: Craig Franklin ####@####.####
Date: 21 May 2005 02:17:50 +0100
Message-Id: <428E8C92.4020700@users.sourceforge.net>

This was fixed back in gputils-0.13.1.

Peter Onion wrote:

>I think I may have "fixed" this, atleast so it works for me !
>
>--- gpcofflink.c~       2005-01-03 00:57:03.000000000 +0000
>+++ gpcofflink.c        2005-05-20 23:03:54.172599737 +0100
>@@ -1468,9 +1468,15 @@
>       write_data = 0;
>     }
>     break;
>+/* PJO */
>+  case RELOCT_ALL:
>+      data = value;
>+
>+
>+
>+      break;
>   /* unimplemented relocations */
>   case RELOCT_PAGESEL:
>-  case RELOCT_ALL:
>   case RELOCT_SCNSZ_LOW:
>   case RELOCT_SCNSZ_HIGH:
>   case RELOCT_SCNSZ_UPPER:
>
>
>NOTE: I've not really looked what his SHOULD do, but looking at the list
>file it seems to produce the right code for my particular purpose.
>
>Peter
>
>
>On Fri, 2005-05-20 at 22:49 +0100, Peter Onion wrote:
>  
>
>>Hi,
>>
>>I'm just trying to move some code from absolute mode to relocatable
>>mode, I'm getting this error from gplink....
>>
>>error: unimplemented relocation = 8 in section "asciitab"
>>gplink: gpcofflink.c:1486: gp_cofflink_patch_addr: Assertion `0' failed.
>>Aborted
>>
>>
>>The section "asciitab" is a lookup table which holds the addresses of
>>functions used to process each ascii character.
>>
>>	
>>asciitab	CODE 0x1C00
>>ASCIITable	
>>	DW	ASCIInul	; 0x00
>>	DW	ASCIIsoh	; 0x01
>>	DW	ASCIIstx	; 0x02
>>	DW	ASCIIetx	; 0x03
>>	DW	ASCIIeot	; 0x04
>>etc etc etc
>>
>>
>>The functions (eg ASCIInul) are in another code section in the same
>>file.  It used to work fine in absolute mode but should it still work in
>>relocateable mode ?
>>
>>Peter
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>
>
>  
>


Previous by date: 21 May 2005 02:17:50 +0100 Re: [gnupic] Relocation problems with gplink, Peter Onion
Next by date: 21 May 2005 02:17:50 +0100 function pointers? (was Re: [gnupic] Relocation problems with gplink), Iain Dooley
Previous in thread: 21 May 2005 02:17:50 +0100 Re: [gnupic] Relocation problems with gplink, Peter Onion
Next in thread:


Powered by ezmlm-browse 0.20.