This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: weak alias in gas on arm-elf
- From: Daniel Jacobowitz <drow at false dot org>
- To: Brian Sidebotham <micros at valvers dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 2 Jul 2007 08:56:46 -0400
- Subject: Re: weak alias in gas on arm-elf
- References: <4688F152.108@valvers.com>
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