ARM/THUMB long calls stubs
Sami Kantoluoto
sami.kantoluoto@embedtronics.fi
Thu Aug 5 15:13:00 GMT 2004
Hi Nick,
On Fri, Jul 30, 2004 at 01:02:28PM +0100, Nick Clifton wrote:
> 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 ?
Tried both #pragma long_calls and __attribute__((long_call)) and didn't
help :-/.
-sk
More information about the Gcc-bugs
mailing list