View Single Post
Old 24 May 2020, 11:50   #14
robinsonb5
Registered User
 
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,154
Quote:
Originally Posted by Emufr3ak View Post
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?
robinsonb5 is offline  
 
Page generated in 0.04423 seconds with 11 queries