Reference to stub in libgcc.a

Nick Clifton nickc@cambridge.redhat.com
Sun Jun 23 12:57:00 GMT 2002


Hi Dirk,

> I want to compile a project for arm/thumb. The GCC 3.1 and the
> binutils 2.12 are successfully compiled and installed for arm-elf
> (on pc-linux-gnu host). The gcc produces an assembler-output with
> "_call_via_r3". This stub exists definitely in the library libgcc.a,
> but the linker (arm-elf-ld) does not link this stub. The linker-flag
> is set to this directory, but arm-elf-ld produces the message  
> 'undefined reference to _call_via_r3'.

What is the *exact* command line with which you are invoking
arm-elf-ld ?  (If you are running the linker from gcc then try adding
the -v command line switch).

You may find that adding the --trace-symbol=_call_via_r3 switch you
can find out if the library is being loaded at all.

Cheers
        Nick




More information about the Binutils mailing list