--- In palmnest@yahoogroups.com, "Marcin Orlowski" <carlos@...> wrote:
> Today I took yahm_dev archive and built ChangeTitle example, just for
> fun. The code is pretty simple, builds nicely (arm-palmos-gcc 3.3.1,
> build-prc 2.3), but... it badly crashes on my Treo 650. If I remove
> all the strings from the oldtrap call (i.e. replace by NULL) - it
> works. Any Str... call - same effect. What basic do I miss there?
Any constant string or function pointer reference requires a special kind of
relocation (even
with -fPIC code due to the (somewhat broken) way gcc generates arm code. This is
called
".got" relative code. YAHM supports .got relocations but you need to use a
special version of
the build-prc. In the files section you can find the patch for build-prc that
produces the
required resources.