public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12476] New: ARM/THUMB thunk calls broken
@ 2003-10-01 11:27 thomas at koeller dot dyndns dot org
  2003-10-01 17:52 ` [Bug target/12476] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: thomas at koeller dot dyndns dot org @ 2003-10-01 11:27 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12476

           Summary: ARM/THUMB thunk calls broken
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: thomas at koeller dot dyndns dot org
                CC: gcc-bugs at gcc dot gnu dot org,thomas dot koeller at
                    baslerweb dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-ecos-elf

When compiling ARM programs in THUMB mode, thunks use a 'b' instruction to branch to 
the target function. Since the 'b' instruction has a very limited adressing range (+/- 256 
bytes), and the thunk and its target function are placed in different sections, linking errors 
are very common: 
 
csr_camerastatus.o: In function `non-virtual thunk [nv:-24] to 
CSR_CAMERASTATUS::SetProtocolError(ProtocolErrorHandler::EPROT_ERR_VAL)': 
csr_camerastatus.o(.gnu.linkonce.t._ZThn24_N16CSR_CAMERASTATUS16SetProtocolErrorEN20ProtocolErrorHandler13EPROT_ERR_VALE+0x2): 
relocation truncated to fit: R_ARM_THM_PC11 
CSR_CAMERASTATUS::SetProtocolError(ProtocolErrorHandler::EPROT_ERR_VAL)


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2004-02-12 17:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01 11:27 [Bug c++/12476] New: ARM/THUMB thunk calls broken thomas at koeller dot dyndns dot org
2003-10-01 17:52 ` [Bug target/12476] " pinskia at gcc dot gnu dot org
2003-10-01 18:31 ` pinskia at gcc dot gnu dot org
2003-10-01 18:31 ` pinskia at gcc dot gnu dot org
2003-10-01 19:19 ` rearnsha at gcc dot gnu dot org
2003-11-23  5:45 ` cvs-commit at gcc dot gnu dot org
2004-01-09  2:47 ` pinskia at gcc dot gnu dot org
2004-01-09 10:25 ` rearnsha at gcc dot gnu dot org
2004-01-14  3:39 ` pinskia at gcc dot gnu dot org
2004-01-14  5:41 ` pinskia at gcc dot gnu dot org
2004-01-14  9:21 ` rearnsha at gcc dot gnu dot org
2004-01-14  9:40 ` pinskia at gcc dot gnu dot org
2004-02-03 14:44 ` cvs-commit at gcc dot gnu dot org
2004-02-03 14:45 ` cvs-commit at gcc dot gnu dot org
2004-02-03 16:39 ` pinskia at gcc dot gnu dot org
2004-02-03 16:50 ` rearnsha at gcc dot gnu dot org
2004-02-05 16:07 ` cvs-commit at gcc dot gnu dot org
2004-02-12 17:55 ` ian at wasabisystems dot com

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).