bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARM/Thumb long calls stubs


From: Nick Clifton
Subject: Re: ARM/Thumb long calls stubs
Date: 30 Apr 2002 09:29:00 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

Hi,

> The following examples doesn't work with 2.12 binutils:
> 
> Thumb_func1 (void) { }
> 
> Thumb_func2 (void) { Thumb_func1 (); }
> 
> if the distance between func1 and func2 is happen to be more then 4M
> this code fails.

Try compiling the code with the -mlong-calls.  This switch tells the
compiler to expect these kind of very long function calls and to use
an alternative, (and less efficient) method of function calling.

> Or it should report an error at least.

If the linker is not reporting an error when it attempts to resolve
a BL instruction whoes target is too far away then yes, this is a bug.

Cheers
        Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]