gnupic: Re: [gnupic] Relocation problems with gplink


Previous by date: 20 May 2005 23:08:45 +0100 Relocation problems with gplink, Peter Onion
Next by date: 20 May 2005 23:08:45 +0100 Re: [gnupic] Relocation problems with gplink, Craig Franklin
Previous in thread:
Next in thread: 20 May 2005 23:08:45 +0100 Re: [gnupic] Relocation problems with gplink, Craig Franklin

Subject: Re: [gnupic] Relocation problems with gplink
From: Peter Onion ####@####.####
Date: 20 May 2005 23:08:45 +0100
Message-Id: <1116626897.5511.31.camel@HP.RoomLan>

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
> 



Previous by date: 20 May 2005 23:08:45 +0100 Relocation problems with gplink, Peter Onion
Next by date: 20 May 2005 23:08:45 +0100 Re: [gnupic] Relocation problems with gplink, Craig Franklin
Previous in thread:
Next in thread: 20 May 2005 23:08:45 +0100 Re: [gnupic] Relocation problems with gplink, Craig Franklin


Powered by ezmlm-browse 0.20.