ARM/Thumb call_via_r stub

Dave Murphy wintermute2k4@ntlworld.com
Wed Jun 16 14:48:00 GMT 2004



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





More information about the Binutils mailing list