Hi,

I need to make a Shared Library that runs on the Garnet OS.
At the
beginning, no problem. I'm using PODS, makes it easy works great.

Now,
I am including into this library an XML parser I wrote a while ago. Gcc
started to spit out all sorts of stuff regarding coderes being
full.

Fair enough, I read up on it, and find out that PalmOS does not support
segments bigger than 32Kb. As absurd as this is, I figured others can deal
with it so, I'll have to do so.

I found some information about
creating multi-segmented programs (applications) and while this probably works
ok, there is no information whatsoever about multi-segmented Libraries.
In fact, it won't even link as the multigen tools dumps a .S file which
refers to functions that are in crt0.o. Being a Shared Library, I don't
link with that file and thus, the functions needed to do the
re-allocation are undefined.

I found the source code for _GccReleaseCode() as well
as _GccRelocateData() and I can now compile AND link my library. The
prc file ends up being 46K for now and that would seem to be it.

Not so.
As soon as I try to call a member function (or constructor) that resides
in the extra segment the stuff just crashes. It's not trivial to debug
and I'm a little stuck.

Now, I also noted that the FEP Sample that used
to be in the PDK allows to make a multi-segmented shared library. That
would most likely solve my problem if I could get my hands on it. But,
after I tried to contact the email given in the programming guide it
bounced and I went thru PlamOne, PalmSource, PLuggedIn and what not but no
luck. That sample seems to have disappeared from the surface of the
earth. 

Would anyone here have a zip file with that sample? That would
greatly help me.

Thanks in advance.

--Manu


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to