I have installed prctools, pilrc, sdk, etc. etc. on my cygwin
installation (an older version).
I am able to compile one of the sdk examples (viz. Palm Finger).
However this is done after applying many kludges, e.g. copying crt0.o
and pilot.ld to source directory, and establishing symbolic links to
ALL the header files found at various places in to a single place,
adding path of this place to Makefile, etc. etc. etc.
Now I tried to compile a VERY simple (few-liner) program, it compiles
fine, but ld complains about "entry point to distant" telling some
large hex number as address (something like 0x100000000)
Where is the problem?
TIA
Muhammad Kamran Shakil
Islamabad, Pakistan
Are trying to write a program which has more than 32K bytes of code? Then
you will have to set up a .DEF file which contains a 'multiple code' phrase
and use the macro
#define EDIT_SECTION __attribute__ (( section ( "procdb" ) ))
and put EDIT_SECTION just before the closing ; on all your function
prototypes.
I know I'm not giving you much detail here, but just wanted to tell you to
start with a small program at first since the Motorola 68K processor doesn't
allow jumps greater than 32K bytes but you can get around it by structuring
your application in multiple code segments.
Tim, Pennsylvania, PA USA
Waiting to get some other hint, while I am checking my code.
Hi Muhammad,
If you're still having trouble, how about you post your code (and makefile
etc.) here and maybe I can have look? Also, you said that the ld error is
"entry point to distant" - that's clearly your own paraphrasing... can you
post the exact error message? In fact, post the full output from ld.
Cheers,
Ciaran