This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Vector tables and such...
- From: "Mark Cianfaglione" <markcia at nortelnetworks dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 5 Jun 2002 12:47:12 -0400
- Subject: Vector tables and such...
Hello
I'm on an MCORE design and I'm trying (without too much success I might add)
to set up a vector table for exceptions. It's arranged like so...
.org 0x00 //tell it that we start at 0 in memory
interrupt_vector:
.long start // 0 - reset
.long turn_on_led_error // 1 - misaligned fault
.long turn_on_led_error // 2 - access fault
.etc, .etc
Now I was hoping that the linker would link "start" above with the assembler
routine "start". (which happens to be in another file) However it only
allocates the space for a long (filled with zeros) and doesn't put the
address of "start" at that location.
Am I missing something or am I assuming the wrong operation with the ".long"
keyword?
Mark