This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARM/THUMB long calls stubs


Hi Sami,

Hmm, it seems that -mlong-calls is not enough to force long calls. The
patch itself worked (I _think_) but there are problems when a same source
contains functions in different sections (far away from each other) that
call each other. In my case this is an embedded system where most of
routines are executed from flash but some routines, e.g. flash programming,
have to be in RAM.

Is there some easy way to work around this?

Have you tried using the __attribute__((long_call)) function annotation to tell the compiler to use long calls when accessing the distant functions ?


Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]