farcall-section test

Christophe LYON christophe.lyon@st.com
Tue Feb 24 09:36:00 GMT 2009


On 24.02.2009 04:10, Daniel Jacobowitz wrote:
> @ Test to ensure that a ARM to ARM call exceeding 32Mb generates an error
> @ if the destination is of type STT_SECTION (eg non-global symbol)
> 
> Christophe, is this a limitation or a feature?  I don't know
> why we should do this.
> 

It took me a little while to remember why...

I have actually written the explanation in 
http://sourceware.org/ml/binutils/2008-05/msg00193.html

In short, gas can convert some symbols in STT_SECTION in some cases. But 
after that, we can't tell whether the code pointed to by such a symbol 
is in ARM mode or in Thumb mode; hence we don't know what type of stub 
to insert.

Maybe I should update the comment to make it clearer.

Christophe.



More information about the Binutils mailing list