* arm/interwork - arm code recognised as thumb !
@ 2004-05-10 14:30 Sven Rehfuss
2004-05-13 16:03 ` Nick Clifton
0 siblings, 1 reply; 2+ messages in thread
From: Sven Rehfuss @ 2004-05-10 14:30 UTC (permalink / raw)
To: binutils
Hello,
I have a strange bug in my program.
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, but
it is arm32. My applications crashes at that point.
My System:
eCos 2.0
gcc-3.3.3
binutils 2.14.92
Any idea ??
Regards,
Sven RehfuÃ
sven DOT rehfuss AT b2motion DOT de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: arm/interwork - arm code recognised as thumb !
2004-05-10 14:30 arm/interwork - arm code recognised as thumb ! Sven Rehfuss
@ 2004-05-13 16:03 ` Nick Clifton
0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2004-05-13 16:03 UTC (permalink / raw)
To: Sven Rehfuss; +Cc: binutils
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-13 16:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-10 14:30 arm/interwork - arm code recognised as thumb ! Sven Rehfuss
2004-05-13 16:03 ` Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).