Vector tables and such...

Mark Cianfaglione markcia@nortelnetworks.com
Wed Jun 5 09:47:00 GMT 2002


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



More information about the Binutils mailing list