This is the mail archive of the binutils@sources.redhat.com 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]

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


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