gnupic: relocatable data


Previous by date: 3 May 2004 09:47:27 +0100 Re: PIC program, Matt Marsh
Next by date: 3 May 2004 09:47:27 +0100 Re: relocatable data, Craig Franklin
Previous in thread:
Next in thread: 3 May 2004 09:47:27 +0100 Re: relocatable data, Craig Franklin

Subject: relocatable data
From: "Gabor Kiss [Bitman]" ####@####.####
Date: 3 May 2004 09:47:27 +0100
Message-Id: <Pine.LNX.4.58.0405031035160.3212@nelson.cdata.hu>

I've conceptional problems with gpasm relocatable mode.
I found no way to define data segments in different source files
that will be concatenated at link phase.

I mean I need a construction like this

--------------------------------------------------------------
source1.asm:
	data-segment 0x30	; a non-existent directive (intentionally)
var1:2
var2:1
--------------------------------------------------------------
source2.asm:
	data-segment
var3:4
--------------------------------------------------------------

After linking I expect var3 at address 0x33, that is 0x30 plus the length of
previous data segment.

At this moment nor "cblock" neither "udata" does this.


Anyway I need a "Gputils Relocatable Tutorial for Dummies". :-)
With a lot of examples please.

Gabor

Previous by date: 3 May 2004 09:47:27 +0100 Re: PIC program, Matt Marsh
Next by date: 3 May 2004 09:47:27 +0100 Re: relocatable data, Craig Franklin
Previous in thread:
Next in thread: 3 May 2004 09:47:27 +0100 Re: relocatable data, Craig Franklin


Powered by ezmlm-browse 0.20.