Interrupts for Arm-elf-gcc

Shaun Jackman
Fri Jul 25 16:31:00 GMT 2003

Yeah, I'll show you how to troubleshoot it too. Try running
	$ arm-elf-as start.s
	$ arm-elf-nm start.o
This will give you a list of symbols in start.o. You should see
something like
	00000000 t IRQVector
This says start.o provides the symbol IRQVector.
Then try
	$ arm-elf-gcc -c main.c
	$ arm-elf-nm main.o
	00000000 T IRQHandler
	         U IRQVector
This says main.o provides IRQHandler and needs IRQVector. I think you'll
probably find IRQVector isn't defined in start.o. Assembler symbols
default to the equivalent of a C static symbol. To force it extern you
need to add
	.global IRQVector
to start.s. Try
	$ info as
	s .global


On Fri, 2003-07-25 at 09:56, David Mc Kenna wrote:
> Hi Shaun,
> Thanks for the reply.
> Most of what you suggested worked except the declaration:
>         IRQVector = IRQHandler;
> I am getting an undefined variable for IRQVector.
> Any ideas?
> Thanks,
> Dave

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list