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


On Mon, Jul 02, 2007 at 01:36:34PM +0100, Brian Sidebotham wrote:
> .weak works as I expect, and the symbols it creates are branches to the reset 
> vector (pc=0).

That's your mistake.  .weak does not create symbols; like .globl, it
changes the visibility of a label.

__handler1:
	bl	handler1

	.weak handler1
handler1:
	bl	startup

-- 
Daniel Jacobowitz
CodeSourcery


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