weak alias in gas on arm-elf
Tue Jul 3 11:01:00 GMT 2007
Daniel Jacobowitz wrote:
> The symbol is weak, not the code following it. Weakness only affects
> the definitions of symbols.
> Also, using objdump -d on unlinked object files is a good way to get
> confused. Try adding -r to see what's really happening.
> The ldr version you posted does not make any sense, by the way.
> You want the address of the symbol moved to pc, not the contents of
> the instruction there! I suspect the original version was supposed to
> load the symbol value from a constant pool.
the ldr version should have been:
ldr pc, __hander1
__handler1: .word _hander1
Sorry to have posted up misleading information, and thank you for your
More information about the Binutils