This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: ARM/Thumb call_via_r stub
- From: "Dave Murphy" <wintermute2k4 at ntlworld dot com>
- To: "Sven Rehfuss" <sven dot rehfuss at b2motion dot de>,<binutils at sources dot redhat dot com>
- Date: Wed, 16 Jun 2004 15:48:24 +0100
- Subject: RE: ARM/Thumb call_via_r stub
> -----Original Message-----
> From: binutils-owner@sources.redhat.com
> Hi,
> I have a working toolchain for ARM-ELF (gcc 3.3.4, binutils cvs 040608).
> I applied several patches to get thumb working (I have a 1.5 MByte
> application on an ARM7 system).
> I have a library which has been compiled to be located in the section
> .text. I changed the section ( to .sram) using arm-elf-objcopy (option
> --rename-section).
> I get linker errors about relocation errors concerning the _call_via_r
> functions.
> Is it possible to tell the linker that these function should be in the
> .text section and a second one (e.g. with a different name) in the
> section .sram?
I ran into this one myself recently with my 3.4.0 arm-elf toolchain. The
patch here does the job if you compile with -mlong-calls
http://sources.redhat.com/ml/binutils/2003-06/msg00412.html