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




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