Quote:
Originally Posted by Emufr3ak
I'm using gcc. Found some compile options like fpic, fpie and mpcrel. Either they don't do anything or cause compiler or linker errors.
|
I've just tried -mpcrel with m68k-elf-gcc and it does indeed seem to generate PC-relative code. What errors are you seeing with that option?
What exactly are you trying to do within the C code? Any OS calls? Are you linking with or without startup code / std C library? Are you using a linkscript?