This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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/interwork - arm code recognised as thumb !


Hi Sven,

I am using eCos, compiled as thumb (interwork enabled). My application
is arm32 code and I use a c++ template class. The output of the
gcc-3.3.3 seems OK. But the linker add the template class as thumb,


When you say that the linker "add the template class as thumb" I assume that you mean that the linker creates a calling stub between your arm32 application and the instance of the class, and that this stub switches over to thumb mode before executing the class ?


but it is arm32. My applications crashes at that point.



It sounds as if G++ is failing to label the class code as being arm32 code. If you look at the compiler's assembler output for the class what do you see ? Is there a ".code 32" pseudo op ?


Anyway it is most likely that this is a compiler bug rather than a binutils bug. Can you put together a *small* piece of test code which demonstrates the problem and submit it to the gcc bugs mailing list ?

Cheers
 Nick


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