This is the mail archive of the binutils@sourceware.org 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: weak alias in gas on arm-elf


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.


Daniel,


the ldr version should have been:

...

ldr pc, __hander1

__handler1: .word _hander1

_hander1:
	b	.

...

Sorry to have posted up misleading information, and thank you for your explanations.

Best Regards,

Brian Sidebotham.


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